目录
- thymeleaf简介
- thymeleaf特点
- thymeleaf在SpringBoot的应用
- SpringBoot引入Thymeleaf
- controller配置
- thymeleaf页面测试编写
- 结果展示
- 其他thymeleaf语法
![03278d9ad265430240f07f546d0268a6.png](https://img-blog.csdnimg.cn/img_convert/03278d9ad265430240f07f546d0268a6.png)
1. thymeleaf简介
1. Thymeleaf是适用于Web和独立环境的现代服务器端Java模板引擎。
2. Thymeleaf的主要目标是为您的开发工作流程带来优雅的自然模板 -HTML可以在浏览器中正确显示,也可以作为静态原型工作,从而可以在开发团队中加强协作。
3. Thymeleaf拥有适用于Spring Framework的模块,与您喜欢的工具的大量集成以及插入您自己的功能的能力,对于现代HTML5 JVM Web开发而言,Thymeleaf是理想的选择-尽管它还有很多工作要做。
2. thymeleaf特点
1. thymeleaf在有网络无网络的环境下都可以运行,所以可以直接在浏览器打开查看静态页面效果。它支持HTML原型,可以在HTML标签里面添加其他属性来实现数据渲染。
2. thymeleaf具有开箱即用