模板的春天映射资源Thymeleaf
问题描述:
春天有映射项目像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