springboot 1.5.10.RELEASE 版本 thymeleaf 解析报错:org.xml.sax.SAXParseException: 元素类型 "link" 必须由匹配的结束标记 "</link>" 终止

springboot 1.5.10.RELEASE 版本 thymeleaf 解析报错:org.xml.sax.SAXParseException: 元素类型 "link" 必须由匹配的结束标记 "" 终止

1 个解决方案

AllenJiang
中间件研发,关注微信公众号 : 小哈学Java, 回复"666", 即可免费领取10G学习&面试资料

解决方案:

在 pom.xml 文件里指定 thymeleaf 版本, 即可解决该问题:

<!-- set thymeleaf version -->
<thymeleaf.version>3.0.0.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.0.0</thymeleaf-layout-dialect.version>
<thymeleaf-extras-springsecurity4.version>3.0.2.RELEASE</thymeleaf-extras-springsecurity4.version>