thymeleaf报错元素类型必须由匹配的结束标记终止

spring boot 1.x 版本中thymeleaf报错元素类型 “link” 必须由匹配的结束标记 “</link>” 终止解决办法:

    1.在pom.xml文件中添加:

<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
</dependency>


2.在配置文件中设置:
spring.thymeleaf.mode=LEGACYHTML5
原文地址:https://www.cnblogs.com/goingforward/p/11124470.html