How to solve the problem SpringMVC can only access the JSP page, but can not access the HTML pages?

In DispatcherServlet SpringMVC web.xml configuration of the core when the controller needs to be configured url-pattern attributes of servlet-mapping, showing intercepts all requests in the path, to the process to Spring, so if the configuration /, then all Spring access paths are referred to treatment, and therefore can not be accessed static resources

A solution: Modify / interception label
solutions add two <mvc: resources mapping = "" location = "" />, is set to release the static resource
https://www.cnblogs.com/linnuo/p/7699401.html

Published 42 original articles · won praise 16 · views 3381

Guess you like

Origin blog.csdn.net/qq_41542638/article/details/105301192