1、在pom.xml文件中添加依赖
<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
<version>1.9.21</version>
</dependency>
2、在application.properties中添加
spring.thymeleaf.mode=LEGACYHTML5
1、在pom.xml文件中添加依赖
<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
<version>1.9.21</version>
</dependency>
2、在application.properties中添加
spring.thymeleaf.mode=LEGACYHTML5