1.在Springboot项目中,web的配置中增加thymeleaf配置
2.在view视图中,增加
Spring Boot 实战纪实
thymeleaf:check-template: falsecheck-template-location: false把这段代码复制过去看看,确保包没有缺少或者原templates目录没有删掉