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
猜你喜欢
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2021-11-20
  • 2021-10-06
  • 2021-11-07
  • 2021-10-10
相关资源
相似解决方案