spring boot 加载资源路径配置和classpath问题(转)
1、spring boot默认加载文件的路径:
./META-INF/resources/
./resources/
./static/
./public/
我们也可以从spring boot源码也可以看到:
private static final String[] CLASSPATH_RESOURCE_LOCATIONS = {
"classpath:/META-INF/...
转载
2019-07-03 14:20:53 ·
3243 阅读 ·
0 评论