Spring boot web开发
https://www.webjars.org/
webjars添加前端页面需要的静态依赖

http://localhost:8080/webjars/jquery/3.3.1/jquery.js
查看jquery.js文件

“/**”访问当前项目的任何资源(静态资源的文件夹)

1 "classpath:/META-INF/resources", 2 "classpath:/resources/", 3 "classpath:/static/", 4 "classpath:/public/" 5 "/",当前项目的根路径
localhost:8080/abc === 去静态资源文件夹里面找abc
欢迎页:静态资源文件夹下的所有index.html页面;被“”/**“”映射;
localhost:8080/ 找index页面
所有的·**/favicon.ico都是在静态资源文件下找;将你想要的图标改成favicon.ico命名。

浙公网安备 33010602011771号