1、创建一个Springboot项目

2、在pom.xml中加入thymeleaf模板引擎的依赖
<!-- springboot web开发thymeleaf模板 --> <dependency> <groupId>org.springframework.boot</groupId
本文介绍了如何在Springboot项目中集成Thymeleaf模板引擎,包括在pom.xml添加依赖,配置application.yml以关闭缓存并访问静态资源,以及在Controller中实现页面跳转的方法。
1、创建一个Springboot项目

2、在pom.xml中加入thymeleaf模板引擎的依赖
<!-- springboot web开发thymeleaf模板 --> <dependency> <groupId>org.springframework.boot</groupId

被折叠的 条评论
为什么被折叠?