title: Catch Spring MVC No Mapping Error
body: <p>I configured below exception resolver in my web configuration file but I am not sure why it cannot handle
  errors such as this 'No Matching error found for servlet request: path '/etc'</p>
  
  <pre><code>&lt;bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver"&gt;
      &lt;property name="exceptionMappings"&gt;
          &lt;props&gt;
              &lt;prop key="java.lang.Exception"&gt;
                  exception
              &lt;/prop&gt;
          &lt;/props&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>My app relies on Ajax and there are cases that I change the target url based on some user interactions.</p>
  
  <p>My question is, is it possible for me to catch the error in my Spring MVC and forward it to my exception.jsp so that my user wont get
  a <em>nasty</em> 404.</p>