I\'m using ResponseEntityExceptionHandler for global handling the error and almost working normal, except I want to handle wrong request with spring. By any
throwExceptionIfNoHandlerFound take into account only if no handlers for request found.
In case of default-servlet-handler was configured, DefaultServletHttpRequestHandler will handle request. So, if this solution doesn't work, remove it and have a look (debug) this place of DispatcherServlet.