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

场景

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

查看项目中thymelaf版本

SpringBoot中将thymeleaf升级到3.0或以上版本_第1张图片

实现

打开项目的pom.xml

 
  
   
   1.8
   
   3.0.2.RELEASE
   2.0.4
  

保存看下修改后的结果

SpringBoot中将thymeleaf升级到3.0或以上版本_第2张图片

你可能感兴趣的:(SpringBoot)