I just started to contact springMVC recently. The external css and js referenced in jsp cannot find resources, and there is no problem with the path.
Finally, I found a blog written by a great god. The
link is as follows:
http://www.blogjava.net/Steven-bot/ articles/361333.html
.
Add the following line to the configuration file of springMVC:
<mvc:default-servlet-handler/>
Detailed explanation:
http://www.cnblogs.com/fangqi/archive/2012/10/28/2743108.html
Memo.
The problem that static resources such as js and css in springMVC cannot be found
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326483846&siteId=291194637
Recommended
Ranking