I am using Spring MVC 3.2 and deploying in Apache Tomcat 1.7x. My login url is /web/login
but using url /web/login.abc
where abc can be any text including space.
In both cases it is returning the same resource which I will like to avoid and return HTTP code 404.
Tried adding the below in web.xml but it did not help
`<beans:bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
<beans:property name="useDefaultSuffixPattern" value="false" />
</beans:bean>`