1、pom.xml文件中要引入themyleaf 2、在application.properties文件中加入 #拼接html前后缀spring.resources.static-locations=classpath:/templates/spring.thymeleaf.suffix=.html 相关文章: 2021-05-24 2021-11-18 2021-12-23 2021-07-18 2021-11-14 2021-12-20 2022-12-23