首先感谢这位大哥帖子:https://www.hangge.com/blog/cache/detail_2461.html
解决如下:
在application.properties加:
spring.web.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,
classpath:/static/,classpath:/public/ --追加你的过滤目录--
扩展:
1)classpath路径:
String classpath = ResourceUtils.getURL("classpath:").getPath();
2)