0
点赞
收藏
分享

微信扫一扫

SpringBoot中将thymeleaf升级到3.0或以上版本


场景

在thymeleaf3.0以前对页面标签语法要求比较严格开始标签必须有结束标签。

查看项目中thymelaf版本

SpringBoot中将thymeleaf升级到3.0或以上版本_thymeleaf版本升级

实现

打开项目的pom.xml

<!-- 修改参数 -->
<properties>
<!-- 修改JDK的编译版本为1.8 -->
<java.version>1.8</java.version>
<!-- 修改thymeleaf版本 -->
<thymeleaf.version>3.0.2.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.0.4</thymeleaf-layout-dialect.version>
</properties>

保存看下修改后的结果

SpringBoot中将thymeleaf升级到3.0或以上版本_java_02

举报

相关推荐

0 条评论