1. 消费者consumer,使用了xml配置,@Reference注解发现注入null,后续改为@Resource即可
2. 调用失败,报错:
Failed to send response: Response [id=2, version=2.0.0, status=20, event=false, error=null, result=RpcResult [result=per.firstproject.common.entity.Result@244ae34d, exception=null]], cause: java.lang.IllegalStateException: Serialized class per.firstproject.common.entity.Result must implement java.io.Serializable
其中的一个类没有实现接口Serializable。修改即可
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有