Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.48 KB

README.md

File metadata and controls

52 lines (33 loc) · 1.48 KB

The starter with grpc client

<dependency>
    <groupId>net.devh</groupId>
    <artifactId>grpc-client-spring-boot-starter</artifactId>
    <version>2.13.0.RELEASE</version>
</dependency>

@GrpcClient

    @GrpcClient("cityscoreclient")
    private cityscoreGrpc.cityscoreBlockingStub citysScoreStub;

Example: @GrpcClient("myClient") <-> grpc.client.myClient.address=static://localhost:9090

Grpc request setting

address, port and security

# address, port, security method for grpc client channel
grpc.client.cityscoreclient.address=static://localhost:9906
grpc.client.cityscoreclient.negotiation-type=plaintext

Usage

http://localhost:8200/cal-score?idNumber=1223&name=daf&surname=dafga&phoneNumber=3242&cityCode=78

Ref

grpc server cpp demo

grpc client cpp demo

grpc client with springboot demo

grpc server with springboot demo

grpc client java demo

grpc server java demo

sprintboot with grpc server. Fork from nils

gRPC Java Client App Implementation

grpc sample on github