当前位置:网站首页>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>
边栏推荐
- Google Earth Engine(GEE)——Landsat 全球土地调查 1975年数据集
- Apifox,你的API接口文档卷成这样了吗?
- #夏日挑战赛#数据库学霸笔记(下)~
- 1个月增长900w+播放!总结B站顶流恰饭的2个新趋势
- Metaforce force meta universe development and construction - fossage 2.0 system development
- The empirical asset pricing package (EAP) can be installed through pypi
- C语言练习题_1
- postgresql之整體查詢大致過程
- Use of pgpool II and pgpooladmin
- 4 -- Xintang nuc980 mount initramfs NFS file system
猜你喜欢

C#/VB. Net to delete watermarks in word documents

This week's hot open source project!

B站6月榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!

Go swagger use

建議收藏!!Flutter狀態管理插件哪家强?請看島上碼農的排行榜!

【论文阅读|深读】DNGR:Deep Neural Networks for Learning Graph Representations

Collection recommandée!! Quel plug - in de gestion d'état flutter est le plus fort? Regardez le classement des manons de l'île, s'il vous plaît!

3 -- Xintang nuc980 kernel supports JFFS2, JFFS2 file system production, kernel mount JFFS2, uboot network port settings, and uboot supports TFTP

C # / vb. Net supprime le filigrane d'un document word

Increase 900w+ playback in 1 month! Summarize 2 new trends of top flow qiafan in station B
随机推荐
豆瓣平均 9.x,分布式领域的 5 本神书!
建議收藏!!Flutter狀態管理插件哪家强?請看島上碼農的排行榜!
Real project, realized by wechat applet opening code (end)
Why am I warned that the 'CMAKE_ TOOLCHAIN_ FILE' variable is not used by the project?
测试优惠券要怎么写测试用例?
leetcode:736. LISP syntax parsing [flowery + stack + status enumaotu + slots]
[C # notes] reading and writing of the contents of text files
[paper reading | deep reading] graphsage:inductive representation learning on large graphs
Google Earth Engine(GEE)——Landsat 全球土地调查 1975年数据集
PCL 常用拟合模型及使用方法
Leetcode:minimum_depth_of_binary_tree解决问题的方法
Overall query process of PostgreSQL
Go swagger use
C#/VB. Net to delete watermarks in word documents
4--新唐nuc980 挂载initramfs nfs文件系统
[paper reading | deep reading] dngr:deep neural networks for learning graph representations
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
Summer Challenge database Xueba notes (Part 2)~
go swagger使用
Station B's June ranking list - feigua data up main growth ranking list (BiliBili platform) is released!