springboot静态资源访问探究
2021-06-08 12:02
阅读:741
标签:优先级 nta ati tee 定义 load get ref jar
目录
- 在springboot中,我们可以使用以下方式处理静态资源
- 一、webjars -> localhost:8080/webjars/
- 二、public, static, /** , resources -> localhost:8080/
- 三、优先级:resources > static(默认) > public
- 四、配置文件自定义静态资源访问路径
在springboot中,我们可以使用以下方式处理静态资源
一、webjars -> localhost:8080/webjars/
-
获取依赖坐标webjars官网
-
倒入坐标
-
查看目录
-
二、public, static, /** , resources -> localhost:8080/
三、优先级:resources > static(默认) > public
四、配置文件自定义静态资源访问路径
spring.mvc.static-path-pattern=...
springboot静态资源访问探究
标签:优先级 nta ati tee 定义 load get ref jar
原文地址:https://www.cnblogs.com/bleso/p/14528331.html
上一篇:线程的创建
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:springboot静态资源访问探究
文章链接:http://soscw.com/index.php/essay/92194.html
文章标题:springboot静态资源访问探究
文章链接:http://soscw.com/index.php/essay/92194.html
评论
亲,登录后才可以留言!