Skip to content

ppdouble/springboot-grpc-client-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

grpc client with springboot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages