1.pom.xml导入依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>
2.thymelef的默认配置文件
springboot工程默认有一个templates文件夹,所有的html页面都放这个文件夹里。
3.新建一个controller
4.创建html文件,写上命名空间 xmlns:th="http://www.thymeleaf.org"
- SpringBoot Thymeleafspringboot-thymeleaf springboot-thymeleaf springboot thymeleaf对象 springboot-thymeleaf springboot thymeleaf属性 语法springboot图标thymeleaf springboot thymeleaf spring6页面 springboot thymeleaf 23 springboot thymeleaf管理系统mybatis springboot thymeleaf框架 国际 springboot thymeleaf 常量springboot-thymeleaf字符串springboot