springBoot静态资源优先级
springboot项目结构
默认优先级
/META-INF/resources>/resources>/static>public
自己设置指定某目录内文件为静态资源
在application.properties中设置
spring.webservices.wsdl-locations=classpath:/staticNew
在application.yaml中设置
spring:
webservices:
wsdl-locations: “classpath:/staticNew”
设置的staticNew(public/static/resources…)的静态资源优先级最高