I wanted to use HandlerExceptionResolver to handle exceptions related to request issues such as 404 and other error codes. Tomcat seems to respond to these errors without looking at Spring. Is there a way to make HandlerExceptionResolver respond to 404 errors.
I know that configuring web.xml
and using <error-page>
will work. But is there a way to do this by registering the HandlerExceptionResolver or something similar to that using Spring MVC?