SpringBoot使用Thymeleaf遇错解决

问题一


org.thymeleaf.exceptions.ConfigurationException: 
    Cannot perform conversion to XML from legacy HTML: 
    The nekoHTML library is not in classpath. nekoHTML 1.9.15 or newer is required for processing templates in "LEGACYHTML5" mode [http://nekohtml.sourceforge.net]. 
    Maven spec: "net.sourceforge.nekohtml::nekohtml::1.9.15". IMPORTANT: DO NOT use versions of nekoHTML older than 1.9.15.
    

解决
意思是需要依赖“nekoHTML”,在pom.xml里面添加此依赖即可:

<dependency>
	<groupId>net.sourceforge.nekohtmlgroupId>
    <artifactId>nekohtmlartifactId>
    <version>1.9.22version>
dependency>

你可能感兴趣的:(错误解决集合,spring,boot,java)