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命名。

 

posted @ 2018-12-12 17:43  dogma_f  阅读(211)  评论(0编辑  收藏  举报