tf2021go commented on issue #13338: URL: https://github.com/apache/dubbo/issues/13338#issuecomment-1815826126
@xiaoyuuuuuupeng 多谢!我的代码按照你的修改方法改动后也运行成功了! 总结一下改动: 一、interface里面proto的编译插件改成Dubbo3TripleGenerator,同时版本升级到3.2.7; 二、interface里面proto文件option java_multiple_files = true;(这是上面proto插件升级后要求的) 三、provider和consumer里面grpc的接口类,改成triple插件编译后的新的接口类(我之前没有清除老的grpc插件编译出来的文件,仍然引用的是老的grpc接口类) 修改后: public class PredictServer extends DubboPredictServiceTriple.PredictServiceImplBase 修改前: public class PredictServer extends DubboPredictServiceGrpc.PredictServiceImplBase implements DubboPredictServiceGrpc.IPredictService -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
