org.springframework.web.servlet.DispatcherServlet noHandlerFound
警告: No mapping found for HTTP request with URI [/] in DispatcherServlet with name 'DispatcherServlet'
No mapping found for HTTP request with URI [/index.html] in DispatcherServlet with name 'DispatcherServlet'
解决办法:
在web.xml中添加
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
或者在spring-mvc.xml中添加
<mvc:default-servlet-handler/>