首页 > 编程语言 > 详细

springboot集成freemarker静态资源无法访问

时间:2019-04-17 19:00:16      阅读:164      评论:0      收藏:0      [点我收藏+]

如题配置文件加上

#设定静态文件路径,js,css等。static为你放置静态资源的文件夹名称,也可以叫别的名字
.properties加上
spring.mvc.static-path-pattern=/static/**

.yml加上
spring:
mvc:
static-path-pattern: /static/**

 

springboot集成freemarker静态资源无法访问

原文:https://www.cnblogs.com/zeussbook/p/10725403.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!