當前位置:
首頁 >
spring.mvc.static-path-pattern、spring.resources.static-locations
發布時間:2025/3/12
13
豆豆
生活随笔
收集整理的這篇文章主要介紹了
spring.mvc.static-path-pattern、spring.resources.static-locations
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
“spring.mvc.static-path-pattern”用于闡述HTTP請求地址,請求非controller地址,如js,css,img等訪問路徑需要加上static,
可以不配置也能訪問圖片
而“spring.resources.static-locations”則用于描述靜態資源的存放位置。多個路徑(逗號隔開)中依次查找是否存在
總結
以上是生活随笔為你收集整理的spring.mvc.static-path-pattern、spring.resources.static-locations的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 解决MongoDB Compass
- 下一篇: Python-OpenCV 笔记2 --