template might not exist or might not be accessible by any of the configured Template Resolvers

在springboot中使用thymeleaf的时候,在controller中跳转到templates下的html页面的时候,突然报错template might not exist or might not be accessible by any of the configured Template Resolvers,
在查看页面是否存在,路径是否正确后,并查看target文件夹下是否有自己想要的文件
template might not exist or might not be accessible by any of the configured Template Resolvers
发现缺失后,将项目停止,并将target文件夹删除,并重新运行项目后,恢复正常。
target是用来存放项目构建后的文件和目录、jar包、war包、编译的class文件。
因为我是在项目运行后,对template中的html文件进行了修改和添加删除部分页面,target并没有更新信息的原因导致。
个人粗心的原因,这里记录一下