Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在此处输入图像描述
[szm@localhost helloworld]$ protoc --plugin=protoc-gen-grpc-java=/home/szm/build/exe/java_plugin/protoc-gen-grpc-java --grpc-java_out=./src/main/java/ ./src/main/proto/helloWorld.proto
我明白sayHelloGrpc.java了,但它有一些像那张照片一样的问题。
sayHelloGrpc.java
ServiceDescriptor是一个较新的 API。我希望您使用更新的 protoc-gen-grpc-java 版本,而不会更新您对 grpc 运行时(grpc-core 或 grpc-all)的依赖。
ServiceDescriptor