This project is a simple Java application that demonstrates how to set up a gRPC server using Spring Boot. It includes a basic Ping service that responds with a Pong message.
- Java 17 or higher
- Maven 3.6 or higher
- grpcurl
To build the application, run the following command in the project root directory:
./mvnw -DskipTests packageYou can run the application using the Spring Boot Maven plugin:
./mvnw spring-boot:runAlternatively, you can run the packaged JAR file:
java -jar target/*.jarOnce the server is running, you can test the Ping service using grpcurl. First,
list the available services:
grpcurl -plaintext localhost:9090 listtest ping service:
grpcurl -plaintext -d '{}' localhost:9090 health.PingService/Ping