In my REST API that has been developed using the Spring Framework, I have a rest and point that is two double values Rest call is:
Here, the first parameter (double datatype) 12.910 9 67 i.e. i can get correctly, i.e. 12.910 9 67 But The second parameter, that is, 77.599570, I can only get 77.0 data after the decimal point.
I have the rest of the backend:
@ request mapping (value = "/ pass / {latitude} / {lngi}", method = requested method.GET, = "App / JS") Public list & lt; Event & gt; GetNearByEvents (@PathVariable ("lat") double latitude, @ path varabelle ("lngi") double lngi, HTTPSvette response response throws IOException
How to get double data type in the REST API?
Update your code below - note {lngi :. +}
which means Regex will show some letter post .
@RequestMapping (value = "/nearby/{lat}/{lngi:.+}", method = Get RequestMethod, = "App / JS" ) Public listing & lt; Event & gt;
No comments:
Post a Comment