在yml中配置:
spring:
resources:
static-locations: classpath:/static
或者在properties中配置:spring.resources.static-locations=classpath:/static
springboot加载static下的静态资源
最新推荐文章于 2022-07-29 11:27:27 发布
在yml中配置:
spring:
resources:
static-locations: classpath:/static
或者在properties中配置:spring.resources.static-locations=classpath:/static