当前位置: 首页 > 工具软件 > unbescape > 使用案例 >

解决SpringBoot集成Thymeleaf 出现java.lang.ClassNotFoundException: org.unbescape.html.HtmlEscape异常问题

屠杰
2023-12-01

转载于 https://blog.csdn.net/m0_37450089/article/details/81193540

<!-- thymeleaf -->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-thymeleaf</artifactId>
		</dependency>
		<!-- 异常java.lang.ClassNotFoundException: org.unbescape.html.HtmlEscape 而添加的库 -->
		<dependency>
			<groupId>net.sourceforge.nekohtml</groupId>
			<artifactId>nekohtml</artifactId>
		</dependency>
		<dependency>
			<groupId>org.unbescape</groupId>
			<artifactId>unbescape</artifactId>
			<version>1.1.1.RELEASE</version>
		</dependency>

unbescape 版本过低导致的

 

学习过程:知其然不知其所以然阶段-----

 类似资料: