This application has no explicit mapping for /error, so you are seeing this as a fallback.
Exception parsing document: template="xxxxxxxxl", line 17 - column 5
生成的标签没有闭合
Thymeleaf模板引擎,遇到不闭合标签会报这个错误,补全标签或者
解决方案:
1. 添加maven依赖
<dependency> <groupId>net.sourceforge.nekohtml</groupId> <artifactId>nekohtml</artifactId> <version>1.9.22</version> </dependency>
2. 更改application.Properties属性
spring.thymeleaf.mode=LEGACYHTML5