Announcement Announcement Module
Collapse
No announcement yet.
@PathVariable with dots is cut Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • @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

  • #2
    Just encountered the same thing

    Comment


    • #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?

      Comment


      • #4
        Any ideas how this can be customized?

        Comment


        • #5
          Check this post:
          http://forum.springsource.org/showth...563#post263563

          Comment

          Working...
          X