springboot配置靜態資源映射

第一種方式:注入一個WebMvcConfigurer對象(springboot中全部的WebMvcConfigurer對象會一塊兒起做用) import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.spring
相關文章
相關標籤/搜索