I have a controller with request mapping as @RequestMapping("/**")
What does it mean?
If I want to exclude certain url pattern from the above mapping how would I do that?
Could someone please shed some light on it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your URL will intercept all requests matching ‘/**’. Depending on where you are defining this I am not sure why you would want to do this. On class level this should define the base path while on method level it should be refined to the specific function.
If you would like to exclude a pattern you could define another controller that is ordered at a higher priority to the controller specifying ‘/**’
Here are 2 good references from spring source:
http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/bind/annotation/RequestMapping.html
http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html