【SpringBoot】thymeleaf标签不用关闭配置

采用的配置依赖如下:

<!--thymeleaf依赖-->
<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<properties>
   <!--3相比2极大的提高了效率,并且不需要标签闭合,类似的link,img等都有了很好的支持,按照如下配置即可-->
   <thymeleaf.version>3.0.0.RELEASE</thymeleaf.version>
   <thymeleaf-layout-dialect.version>2.0.0</thymeleaf-layout-dialect.version>
</properties>

猜你喜欢

转载自blog.csdn.net/zlt995768025/article/details/80172387