1. The configuration
<mvc:resources mapping="/js/**" location="/js/"/>
Mapping: represents all files under js directory
location: represents the specific file path of a static resource
2. If SpringMVC can’t find the static resource, then tomcat should find the static resource
<mvc:default-servlet-handler/>
Read More:
- (springmvc) Failed to load resource: the server responded with a status of 404 (Not Found)
- Request cannot get static resource
- Exception of browser accessing servlet404
- Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded (How to Fix)
- How to Fix Spring Boot OTS parsing error: Failed to convert WOFF 2.0
- Mapped Statements collection does not contain value for XXXX
- How to Fix Invalid bound statement (not found) Error
- Relative path and absolute path${ pageContext.request.contextPath }
- stay web.xml Configure error page in
- Server Tomcat v7.0 server at localhost failed to start
- Problems of accessing servlet display 404 on MyEclipse
- Securityerror: error ᦇ 2148: SWF file (SWF file cannot access local resources)
- Browser console prompt: Error: NetworkError when attempting to fetch resource.
- Solution to Tomcat starting error listener start
- Differences between the assets directory in Android project and the purpose of resource
- [spring] start error: nosuchmethoderror: javax.servlet.http . HttpServletResponse.getStatus () I
- 13.2 spring boot start error: whitelabel error page
- Tomcat opens the startup.bat The reason for the flash
- Start tomcat server error Context initialization failed