spring boot thymeleaf 静态资源访问报错解决

最近用spring boot 搭建个项目,访问页面时静态资源加载不出来,百度了一番找到一个解决方案。 解决方案如下 1、controller代码 @Controller public class IndexController { @RequestMapping("/") public String index() { return "index"; }
相关文章
相关标签/搜索