1:网页文件html表头未引入thymleaf
<html xmlns:th="http://www.thymeleaf.org">
2:maven引入的jar包有问题,建议删除maven仓库中的相关jar包并重新引入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId> spring-boot-starter-thymeleaf</artifactId>
</dependency>