解决方法:在pom.xml中添加依赖:
<dependency> <groupId>net.sourceforge.nekohtml</groupId> <artifactId>nekohtml</artifactId> <version>1.9.22</version> </dependency>
在application.yml中添加配置:
spring: thymeleaf: mode: LEGACYHTML5
解决方法:在pom.xml中添加依赖:
<dependency> <groupId>net.sourceforge.nekohtml</groupId> <artifactId>nekohtml</artifactId> <version>1.9.22</version> </dependency>
在application.yml中添加配置:
spring: thymeleaf: mode: LEGACYHTML5