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