Web开发的自动配置类: org.springframework.boot.autoconfigure.web.WebMvcAutoConfigurationjava
好比:
spring mvc的先后缀配置git
在WebMvcAutoConfiguration中对应方法
对应配置文件github
若是进入SpringMVC的规则为/时,SpringBoot的默认静态资源的路径为:
spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/
若是某个静态文件不在上面的配置路径中,那么从浏览器中就访问不到了web
参考:https://github.com/chengbingh...spring