0
春天有映射項目像css,js,img的問題。模板的春天映射資源Thymeleaf
@RequestMapping("/")
public String index(Model model) {
return components.init("index",model).getHeader().getFooter().getSidebar().getRecommended().toString();
}
內模板鏈接索引看起來像這樣:當我點擊從模板索引鏈接後發生問題/地區/標籤(參數)
我在上面點擊後鏈接的地方網站看起來不太好。
問題在於映射。
No mapping found for HTTP request with URI [/places/assets/css/styles.min.css]
我試圖註冊資源,但沒有改變。我認爲問題出在Thymeleaf的網站配置上。
我找到了解決辦法: 鏈接前添加「/」 主題應接近 – Adam
你可能想發表您的答案 – bphilipnyc