Spring @RequestMapping and trailing slash

I am trying to map a method in a controller using URI pattern annotation:

@RequestMapping(value="/select/{customerNumber}/{resource}", method=RequestMethod.GET)

      

It looks like it doesn't show up if "resource"

there is a trailing slash at the end .

Update: Using Spring 3.0.2 release

Update 2: @RequestMapping

Seems to behave differently for URI templates and where I am not using a template. For non-pattern it doesn't work if I have a trailing slash. But this pattern does not work, if I do not have a trailing slash. Very strange!

+2


a source to share


1 answer


This has been fixed in version 3.0.3. SPR-7064



+2


a source







All Articles