Under SpringMVC framework has not intercepted a static resource, still can not get Jquery?

 background

Front Controller (dispatcherServlet) are blocked by default static resources, so by default, jsp can not request a static resource to the server. In order not to intercept the static resources, first of all, will js, css and other resources placed in the webapp (or make configuration becomes very troublesome) in any directory except WEB-INF; then, in SpringMVC configuration file by mvc: resources element specifies static resources can not intercept.

Problems encountered

Do the above two points, still can not access.

Solution

Modify the static resource names, such as the jquery.min.js into jquery.js

 

Guess you like

Origin www.cnblogs.com/JadenLi/p/11261158.html