springboot改变thymeleaf版本
这里的***-spring5***一定要加,不然程序可以启动,不过用不了thymeleaf的依赖,程序会报错。
在pom依赖里面加上这两条代码,不过有时候还是不可以; 导入依赖之后打开左侧的查看所有依赖 然后在这里面找到自己导入的thymeleaf依赖,找到这个最长的那个依赖的版本之后,我吗就需要在pom文件吧
<thymeleaf
-spring5
.version
>3.0.9.RELEASE
</thymeleaf
-spring5
.version
>
这条代码改成对应的版本就可以了
<thymeleaf
-spring5
.version
>3.0.4.RELEASE
</thymeleaf
-spring5
.version
>