如题配置文件加上
#设定静态文件路径,js,css等。static为你放置静态资源的文件夹名称,也可以叫别的名字
.properties加上
spring.mvc.static-path-pattern=/static/**
.yml加上
spring:
mvc:
static-path-pattern: /static/**
如题配置文件加上
#设定静态文件路径,js,css等。static为你放置静态资源的文件夹名称,也可以叫别的名字
.properties加上
spring.mvc.static-path-pattern=/static/**
.yml加上
spring:
mvc:
static-path-pattern: /static/**
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。