java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.ser.std.ToStringSerializerBase

遇到这个问题可能就是版本较低出现问题,我的springboot parent版本为2.3.2.RELEASE

<parent>
		<groupId>org.springframework.bootgroupId>
		<artifactId>spring-boot-starter-parentartifactId>
		<version>2.3.2.RELEASEversion>
		<relativePath/> 
	parent>
123456

springboot的web模块和2.9.5版本的jackson-databind一起使用会报错

<dependency>
			<groupId>com.fasterxml.jackson.coregroupId>
			<artifactId>jackson-databindartifactId>
			<version>2.9.5version>
		dependency>
12345

将版本改为2.10.1即可

<dependency>
			<groupId>com.fasterxml.jackson.coregroupId>
			<artifactId>jackson-databindartifactId>
			<version>2.10.1version>
		dependency>
12345

你可能感兴趣的:(java,java,spring,boot,spring)