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。修改即可