-
Mar 21st, 2010, 10:12 AM
#1
@PathVariable with dots is cut
Hi,
Is there any limitation of using URI that ends with dots?
For example:
www.mysite.com/id/10.10.3
For some reason it seems like that the following controller cuts the last number:
@RequestMapping(value ="/{uid}" , method=RequestMethod.GET)
public ModelAndView getByUID(@PathVariable String uid)
Meaning uid in this example will be "10.10"
On the other end the following works ok:
www.mysite.com/id/10.10.3/
Thanks,
Guy
-
Mar 21st, 2010, 01:07 PM
#2
Just encountered the same thing
-
Mar 21st, 2010, 10:46 PM
#3
I think this is caused by Spring automatically appending ".*" to the @RequestMapping based URI Templates, so the variable only evaluaes to the first .
Is there a way to override this?
-
Mar 25th, 2010, 07:49 PM
#4
Any ideas how this can be customized?
-
Mar 28th, 2010, 09:16 PM
#5
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules