# grpc **Repository Path**: noodlesAI/grpc ## Basic Information - **Project Name**: grpc - **Description**: grpc案例源码 - **Primary Language**: Java - **License**: WTFPL - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-12-09 - **Last Updated**: 2025-12-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gRPC Sample Project This is a simple sample project based on Spring Boot and gRPC, including implementations for both client and server. ## Project Structure - **grpc**: Contains gRPC protocol files and generated code - **server**: gRPC server implementation - **client**: gRPC client implementation ## Functionality This project implements a simple date query service. The client can send a request containing a username, and the server returns the current server time. ## Usage ### Starting the Server 1. Navigate to the server module 2. Run the `ServerApplication` or `GRPCServer` class ### Running the Client 1. Navigate to the client module 2. Run the `GRPCClient` class ## Requirements - Java 8+ - Maven 3.0+ - gRPC Java library ## Protocol Definition The service is defined in the `grpc.proto` file and contains a simple RPC method: ```proto service RPCDateService { rpc getDate (RPCDateRequest) returns (RPCDateResponse); } message RPCDateRequest { string userName = 1; } message RPCDateResponse { string serverDate = 1; } ``` ## Implementation Features - Uses Spring Boot for service management - Uses the gRPC protocol for client-server communication - Includes complete protocol buffer message definitions ## Contribution Guide Contributions and improvements to this project are welcome. You can: 1. Submit issues to report problems or suggest ideas 2. Provide pull requests to implement new features or fix issues 3. Improve documentation and examples ## License This project uses the MIT License. For details, please see the LICENSE file.