spring boot thymeleaf 靜態資源訪問報錯解決

最近用spring boot 搭建個項目,訪問頁面時靜態資源加載不出來,百度了一番找到一個解決方案。 解決方案如下 1、controller代碼 @Controller public class IndexController { @RequestMapping("/") public String index() { return "index"; }
相關文章
相關標籤/搜索