title: What is the replacement for Spring's deprecated NoSuchRequestHandlingMethodException?
body: <p>The <code>NoSuchRequestHandlingMethodException</code> was deprecated in Spring 4.3, in favor of <a href="http://docs.spring.io/autorepo/docs/spring/current/javadoc-api/org/springframework/web/servlet/mvc/multiaction/NoSuchRequestHandlingMethodException.html" rel="noreferrer">annotation-driven handler methods</a>. What does this mean? The exception is still listed in the <a href="https://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#mvc-ann-rest-spring-mvc-exceptions" rel="noreferrer">documentation</a>, without mentioning its deprecated status. If I understand correctly, this exception is thrown when there is no request mapper for a given request. It appears to be handled by the <code>DefaultExceptionHandlerResolver</code>, <a href="http://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.html" rel="noreferrer">here</a>, and the relevant method has been deprecated as well.</p>
  
  <p>If this method is deprecated, can I assume Spring does not throw this exception anymore? How am I supposed to replace this functionality with annotation-driven exception handling? Which exception am I supposed to handle, if this one is deprecated?</p>
  
  <p><strong>Side note:</strong> I also noticed a newer <code>NoHandlerFoundException</code>, <a href="http://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/servlet/NoHandlerFoundException.html" rel="noreferrer">here</a>. Is this a replacement? If so, why? It appears to do the same thing. And why are the exceptions related to other HTTP status codes not deprecated? It all doesn't make a lot of sense.</p>