天天看點

spring boot 頁面通路路徑

springboot在8080後面的位址是直接對應的項目中resources檔案中的static包下的檔案 

即,若a.html在 resources/static/a.html,通路的路徑就為 :localhost:8080/a.html。

若,b.html在 resources/static/test/test1/b.html ,通路的路徑就為:localhsot:8080/test/test1/b.html。

spring boot 頁面通路路徑

報這個錯查了好久,檢查配置,java代碼都沒有錯誤,到底是為什麼呢?

背景報這個錯,

spring boot 頁面通路路徑

發現頁面 meta 沒有結束符郁悶了。說明代碼傳回了但是頁面錯誤。

spring boot 頁面通路路徑

繼續閱讀