解决:将下面三个包替换掉项目中的那个。
<dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version> 2.9.9</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version> 2.9.9</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <version> 2.9.9</version> </dependency>
如果还没有解决,将Spring版本降低,降到4.x,据说,Spring5.x以上的,jackson的版本即使调到最高版也会报错。