Error resolving template "thymeleaf/index", template might not exist or might not be accessible by any of the configured Template Resolvers

来源:6-2 SpringBoot 整合thymeleaf

小白怕怕

2019-03-01 10:39

这个是什么原因??? POM.xml也有了,目录下也创建了相应的center/center.html 和index.html就是出现这个错误????

Error resolving template "thymeleaf/index", template might not exist or might not be accessible by any of the configured Template Resolvers

写回答 关注

3回答

  • weixin_慕设计3155537
    2019-07-13 14:46:35

    我看过了,都没问题,但是还是错


  • 爪子
    2019-03-24 15:30:42
    thymeleaf:
      prefix: classpath:/templates/

    thymeleaf 的classpath只要多一个斜杠的,漏斜杠就会有问题,freemarker不需要后面那个斜杠


    罗小黑003

    这个是freemarker和thymeleaf的区别吗

    2019-09-06 18:49:18

    共 1 条回复 >

  • 慕前端5776792
    2019-03-03 17:41:09

    确认文件是否有建立在正确的目录下,或者看下你的模板配置信息,确认【spring.thymeleaf.prefix】这个属性配置的文件前缀什么的

SpringBoot开发常用技术整合

SpringBoot 极简开发的框架整合利器

102157 学习 · 507 问题

查看课程

相似问题