报错: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页面第一次运行时,在上面出现了些无法识别的红色波浪,如下
这些波浪部分其实往往是正确的,但是由于IDEA的一些bug不能被识别,可以运行
解决办法:
将波浪部分全部注释掉,然后成功运行出页面之后,在去掉注释,重新加载项目,再访问就不会报错了