Skip to content

Commit cb8845c

Browse files
committed
Add example grpcurl usage for Windows
Based on https://github.com/yidongnan/grpc-spring-boot-starter/issues/299#issuecomment-640500718 Also add a direct link to grpcurl in the trouble-shooting section
1 parent 1043e47 commit cb8845c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/en/server/getting-started.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,10 @@ You can test that your application is working as expected by running these [grpc
302302
````sh
303303
grpcurl --plaintext localhost:9090 list
304304
grpcurl --plaintext localhost:9090 list net.devh.boot.grpc.example.MyService
305+
# Linux (Static content)
305306
grpcurl --plaintext -d '{"name": "test"}' localhost:9090 net.devh.boot.grpc.example.MyService/sayHello
307+
# Windows or Linux (dynamic content)
308+
grpcurl --plaintext -d "{\"name\": \"test\"}" localhost:9090 net.devh.boot.grpc.example.MyService/sayHello
306309
````
307310

308311
## Additional Topics <!-- omit in toc -->

docs/en/trouble-shooting.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ or (2) the target is not a grpc-server (e.g. a web-server).
9595
````
9696

9797
or remove the `negotiationType` config completely as `TLS` is the default.
98-
2. Validate that the configured server is running and is a grpc-server using `grpcurl` or a similar tool.
98+
2. Validate that the configured server is running and is a grpc-server using
99+
[`grpcurl`](https://github.com/fullstorydev/grpcurl) or a similar tool.
99100

100101
## Could not find TLS ALPN provider
101102

0 commit comments

Comments
 (0)