org.thymeleaf.exceptions.TemplateInputException: Error resolving template [index], template might no
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [index], template might not exist or might not be accessible by any of the configured Template Resolvers
前端时间在用SpringBoot+SSM框架+template进行些项目的时候总是报错,找了好久都没有找到.
项目目录结构是这样的
controller类中是这样的
pom.xml中SpringBoot的版本信息为2.2.1并添加了thymeleaf架包
application.yml配置文件信息
后面一系列下来就报了最开始的错,作者可能比较菜,经过一天的查找后把原来的thymeleaf架包删除或注释后,重新编译运行后成功跳转
特别提示:在项目当中,作者有两个和thymeleaf有关的架包,经过作者试验发现只用注释或删除第一个也可以成功跳转.
最后感谢各位的观看,如有不专业或者不到位的地方还请各位大神提出指正,谢谢大家!