java_example/java-grpc-demo at master · zacscoding/java_example · GitHub
Skip to content

Latest commit

 

History

History

Folders and files

README.md

gRPC demo

; how to use proto buf & simple rpc

; how to use gRpc (simple rpc, server-to-client stream rpc, client-to-server rpc, bidirectional streaming)

; how to use gRpc with TLS (no mutual auth, mutual auth)

Getting started

compile

$ mvn clean compile  
// then see target/demo/{routeguid | sample1 | tls}/proto/*.class

change running enum

// SampleRunner runner = SampleRunner.SAMPLE1;
// SampleRunner runner = SampleRunner.ROUTE_GUIDE;
SampleRunner runner = SampleRunner.TLS;

running main method in DemoApplication