kryo高速序列化坑,springboot版本是2.2.1.RELEASE


可能是版本号不对应(我是用的springboot版本是2.2.1.RELEASE),在使用

<dependency>
    <groupId>de.javakaffee</groupId>
    <artifactId>kryo-serializers</artifactId>
    <version>0.45</version>
</dependency>

的时候服务提供者和消费者必须增加以下依赖:
<dependency>
    <groupId>com.esotericsoftware</groupId>
    <artifactId>kryo</artifactId>
    <version>4.0.2</version>
</dependency>

否则会报错:

Caused by: com.alibaba.dubbo.remoting.RemotingException: Failed to send message Request
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.alibaba.dubbo.common.serialize.kryo.utils.KryoUtils

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM