spring mvc靜態資源文件匹配規則解讀

spring mvc 內部是使用java 的Pattern來匹配,"/"這個分割符是特殊的字符,它將正則表達式和請求的url分割。html 好比路徑localhost:8080/static/index2.html    java 中的url資源將被分割成爲static,index.html,對應的表達式好比是/static/*會分割成爲static,*兩個。正則表達式 相關的源碼在org.spr
相關文章
相關標籤/搜索