<dependency> <groupId>net.sourceforge.nekohtml</groupId> <artifactId>nekohtml</artifactId> <version>1.9.22</version> </dependency>
pom.xml增加
spring.thymeleaf.mode = LEGACYHTML5
application.properties参数增加或修改