From 5da93d8aab38863bc3e19860e16a7809f69f10d3 Mon Sep 17 00:00:00 2001 From: Glenn Renfro Date: Wed, 3 Dec 2025 09:32:52 -0500 Subject: [PATCH] Update client port configuration instructions Clarify that the `launched.grpc.port` environment variable must be set to specify the server port, rather than assuming port 9090. Add concrete example of setting the environment variable using export command. --- samples/grpc-client/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/grpc-client/README.md b/samples/grpc-client/README.md index dfea722d..5b6ee001 100644 --- a/samples/grpc-client/README.md +++ b/samples/grpc-client/README.md @@ -18,7 +18,10 @@ $ ./mvnw spring-boot:run message: "Hello ==> Alien" ``` -The server has to be running on port 9090. You can use the `grpc-server` sample for that. +You will need to set the property `launched.grpc.port` to the port the server is running on. +If the server is running on port 9090, the property can be set using an environment variable. +For example: `export LAUNCHED_GRPC_PORT=9090`. +The `grpc-server` sample can be used for the server. You can also build and run the application as a native image using GraalVM, in the normal way for a Spring Boot application. E.g: