I am building a Spring 4 MVC app. And it is completely configured using Java Annotations. There is no web.xml. The app is configured by using instance of
web.xml
Enable DispatcherServlet throw a NoHandlerFoundException through web.xml configuartion.
throwExceptionIfNoHandlerFound true