使用 idea 新建一个 demo 项目

Spring Boot 集成 Thymeleaf

Spring Boot 集成 Thymeleaf

 

 Spring Boot 集成 Thymeleaf

 pom.xml 

Spring Boot 集成 Thymeleaf

 

 

在 templates 文件夹中 新增一个 index.html

Spring Boot 集成 Thymeleaf

 controller 层

Spring Boot 集成 Thymeleaf

 

 

 启动后,进行访问得到的效果

Spring Boot 集成 Thymeleaf

 访问项目中的静态资源

 

相关文章:

  • 2021-09-11
  • 2019-07-01
  • 2021-06-01
  • 2021-07-27
  • 2022-12-23
  • 2019-05-31
  • 2022-12-23
  • 2021-12-04
猜你喜欢
  • 2021-04-01
  • 2021-08-14
  • 2021-08-19
  • 2021-10-22
  • 2021-03-31
  • 2022-12-23
相关资源
相似解决方案