报错:org.thymeleaf.exceptions.TemplateInputException: Error resolving template [XXX], template might not exist or might not be accessible by any of the configured Template Resolvers

环境:IDEA+springboot + thymeleaf
当遇到这样的问题,而配置检查没有问题,很有可能是html页面第一次运行时,在上面出现了些无法识别的红色波浪,如下
Error resolving template xxx, template might not exist or...
这些波浪部分其实往往是正确的,但是由于IDEA的一些bug不能被识别,可以运行

解决办法:
将波浪部分全部注释掉,然后成功运行出页面之后,在去掉注释,重新加载项目,再访问就不会报错了

相关文章:

  • 2021-10-04
  • 2021-10-27
  • 2021-10-14
  • 2021-05-16
  • 2021-12-07
  • 2021-10-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-30
  • 2021-05-09
  • 2022-12-23
  • 2021-04-16
  • 2021-12-03
  • 2021-08-15
相关资源
相似解决方案