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
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