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:
- Error 404 reported by spring MVC access Servlet
- Failed to import static file of vue3 static resource. There is no static folder
- Nuxt cannot find the static resource in static
- Request cannot get static resource
- Spring MVC realizes page upload file
- Spring MVC error HTTP status 400 – bad request
- Spring MVC error: could not find acceptable representation
- An error is reported during Java operation due to the problem of static resource export
- node.js Static resource acquisition failed
- Spring MVC 406 status code / could not find acceptable representation
- picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resource
- The 406 status code can not find acceptable representation is returned in spring MVC
- Solution to the error of @ resource annotation in eclipse spring
- non-static variable this cannot be referenced from a static context
- (springmvc) Failed to load resource: the server responded with a status of 404 (Not Found)
- When the spring MVC project is running on idea, an error is reported when the controller is a null pointer
- Spring ApplicationContext – Resource leak: ‘context’ is never closed
- HTML method IE8 reports an error, IE8 jQuery Ajax obtains static resources reports an error, typeerror denies access
- When docker starts tomcat, the access port of the container displays 404, and the source server fails to find the representation of the target resource or is unwilling to disclose an existing one
- 【docker】 denied: requested access to the resource is denied