spring:
mvc:
static-path-pattern: /res/**
resources:
static-locations: "classpath:/haha/"
"classpath:/haha/" 这里要加引号不然springboot会把/ 转义
所以这是后台拿到的,
spring-resources-static-locations-classpathhaha
雷丰阳2021版SpringBoot2 P23 问题解决( spring-resources-static-locations)
最新推荐文章于 2023-07-02 19:17:49 发布