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
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。