首页 > 其他 > 详细

Thymeleaf

时间:2021-03-12 22:11:21      阅读:20      评论:0      收藏:0      [点我收藏+]

Thymeleaf


使用:

  1. 导入start依赖
  <!--SpringBoot导入-->
  <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-thymeleaf</artifactId>
  </dependency>
  <!--非springboot导入-->
  <dependency>
      <groupId>org.thymeleaf</groupId>
      <artifactId>thymeleaf</artifactId>
      <version>2.1.4</version>
  </dependency>
  1. html页面加入约束
  2. 之后可以使用Tamplate 放入html
    Thymeleaf是一个模板引擎,可以替代jsp

语法:后续添加

Thymeleaf

原文:https://www.cnblogs.com/zhy-god/p/14526010.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!