The jsp file under webapp gets css, js, images files

The webapp file is as follows:

Import the css file of the jsp file:

the page does not display the css style, just add the red box content in the picture to the spring-mvc.xml file.
insert image description here
The main function of mvc:default-servlet-handler/ is to solve the problem of accessing static resources.

Guess you like

Origin blog.csdn.net/weixin_42307069/article/details/102602921