springboot优先级

在springboot中,我们用一下方式处理静态资源

.webjars localhost:8080/webjars

.

classpath:/META-INF/resources/",
"classpath:/resources/", "classpath:/static/", "classpath:/public/

优先级

resources>static>public

 

posted @ 2021-09-25 12:03  老运维  阅读(44)  评论(0)    收藏  举报