springboot靜態資源路徑配置

自定義網頁路徑 1、在文件夾中定義 例如: webpage 是在res資源文件夾下建的文件夾 裏面放的是網頁 網頁是aa.html 在application.properties 文件中寫 spring.resources.static-locations= classpath:/webpage/ //這裏是文件存放的真實路徑 spring.mvc.stati
相關文章
相關標籤/搜索