第一步:添加依赖,springboot中集成了thymeleaf,所以用springboot中的依赖就行
第二步:修改配置文件
问题总结:
使用过程中报错 :
org.xml.sax.SAXParseException: 元素类型 "link" 必须由匹配的结束标记 "</link>" 终止
错误原因:thymeleaf对html语言较严格,如果不是HTML5的话,基本会报这个错
解决办法:
原创作者: u_13145529 转载于: https://blog.51cto.com/u_13145529/11740799