当前位置:网站首页>fasterxml ToStringSerializerBase报错
fasterxml ToStringSerializerBase报错
2022-07-06 18:57:00 【mo_seele】
ToStringSerializerBase报错
报错内容
整合dubbo时报错
Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ser/std/ToStringSerializerBase
at com.fasterxml.jackson.datatype.jsr310.JavaTimeModule.<init>(JavaTimeModule.java:158) ~[jackson-datatype-jsr310-2.13.2.jar:2.13.2]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_322]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_322]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_322]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_322]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211) ~[spring-beans-5.3.18.jar:5.3.18]
... 69 common frames omitted
原因
dubbo依赖需要fasterxml的支持
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>3.0.7</version>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-rpc-dubbo</artifactId>
<version>3.0.7</version>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-registry-zookeeper</artifactId>
<version>3.0.7</version>
</dependency>
解决
添加依赖
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.10.1</version>
</dependency>
完整依赖
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>3.0.7</version>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-rpc-dubbo</artifactId>
<version>3.0.7</version>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-registry-zookeeper</artifactId>
<version>3.0.7</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.6.6</version>
</dependency>
<dependency>
<groupId>org.example</groupId>
<artifactId>common</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
边栏推荐
- Detailed explanation of line segment tree (including tested code implementation)
- unity webgl自适应网页尺寸
- [paper reading | deep reading] dngr:deep neural networks for learning graph representations
- 【森城市】GIS数据漫谈(二)
- C语言练习题_1
- [Mori city] random talk on GIS data (II)
- C#/VB.NET 删除Word文檔中的水印
- 【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件
- leetcode:736. LISP syntax parsing [flowery + stack + status enumaotu + slots]
- Apifox,你的API接口文档卷成这样了吗?
猜你喜欢
建議收藏!!Flutter狀態管理插件哪家强?請看島上碼農的排行榜!
Several classes and functions that must be clarified when using Ceres to slam
The third season of ape table school is about to launch, opening a new vision for developers under the wave of going to sea
Infrared camera: juge infrared mag32 product introduction
Alibaba cloud middleware open source past
AWS学习笔记(一)
TiFlash 源码阅读(四)TiFlash DDL 模块设计及实现分析
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
1个月增长900w+播放!总结B站顶流恰饭的2个新趋势
Go swagger use
随机推荐
[server data recovery] data recovery case of a Dell server crash caused by raid damage
#yyds干货盘点# 解决名企真题:最大差值
C # / vb. Net supprime le filigrane d'un document word
MySQL
CSDN 夏令营课程 项目分析
Pioneer of Web3: virtual human
CDB PDB 用户权限管理
4 -- Xintang nuc980 mount initramfs NFS file system
[C # notes] reading and writing of the contents of text files
String or binary data will be truncated
Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
The empirical asset pricing package (EAP) can be installed through pypi
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
Freeswitch dials extension number source code tracking
Lumion 11.0软件安装包下载及安装教程
Use of pgpool II and pgpooladmin
如何设计好接口测试用例?教你几个小技巧,轻松稿定
慧通编程入门课程 - 2A闯关
Apifox,你的API接口文档卷成这样了吗?
云原生混部最后一道防线:节点水位线设计