Spring Annotation trailing slash
        Posted  
        
            by Eqbal
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Eqbal
        
        
        
        Published on 2010-06-09T22:03:50Z
        Indexed on 
            2010/06/09
            22:12 UTC
        
        
        Read the original article
        Hit count: 356
        
spring-mvc
|spring-annotations
I have a controller with @RequestMapping for root path "/". There are other controllers with say a @RequestMapping of "/test" etc. My application seems to be mapping correctly for paths like /appname/test, but if I add a trailing slash to the path, like so "/appname/test/ then it maps to the controller that has the @RequestMapping for root path "/". Any idea why?
© Stack Overflow or respective owner