Spring @RequestMapping and trailing slash problem

Posted by Eqbal on Stack Overflow See other posts from Stack Overflow or by Eqbal
Published on 2010-05-04T23:28:09Z Indexed on 2010/05/04 23:38 UTC
Read the original article Hit count: 303

I am trying to map a method in a Controller using the annotation with URI template:

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

It appears that this does not get mapped if there is a trailing slash at the end of "resource".

© Stack Overflow or respective owner

Related posts about spring-annotations

Related posts about spring-mvc