在yml中配置:
spring:
resources:
static-locations: classpath:/static
或者在properties中配置:spring.resources.static-locations=classpath:/static
springboot加载static下的静态资源
最新推荐文章于 2024-05-23 13:03:33 发布
在yml中配置:
spring:
resources:
static-locations: classpath:/static
或者在properties中配置:spring.resources.static-locations=classpath:/static