thymeleaf模板对没有结束符的HTML5标签解析出错的解决办法
<dependency> <groupId>net.sourceforge.nekohtml</groupId> <artifactId>nekohtml</artifactId> <version>1.9.22</version> </dependency>
pom.xml增加
spring.thymeleaf.mode = LEGACYHTML5
application.properties参数增加或修改
<dependency> <groupId>net.sourceforge.nekohtml</groupId> <artifactId>nekohtml</artifactId> <version>1.9.22</version> </dependency>
pom.xml增加
spring.thymeleaf.mode = LEGACYHTML5
application.properties参数增加或修改