springboot-靜態資源

默認路徑 Spring Boot 默認爲我們提供了靜態資源處理,使用 WebMvcAutoConfiguration 中的配置各種屬性。建議大家使用Spring Boot的默認配置方式,提供的靜態資源映射如下: classpath:/META-INF/resources classpath:/resources classpath:/static classpath:/public 在工程裏面路徑
相關文章
相關標籤/搜索