# spring-boot-grpc **Repository Path**: liyi_236/spring-boot-grpc ## Basic Information - **Project Name**: spring-boot-grpc - **Description**: spring-boot-grpc - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-11 - **Last Updated**: 2024-06-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 项目介绍 **生成代码** 根据.proto文件生成消息体类文件和XXXGrpc类文件 - 使用maven命令. 生成消息体类文件 mvn protobuf:compile 生成消息体类文件 生成XXXGrpc类文件: mvn protobuf:compile-custom - 使用maven插件, 编译. protobuf:compile protobuf:compile-custom **helloworld.proto** ```go syntax = "proto3"; option java_multiple_files = true; option java_package = "com.chenj.grpc.lib"; option java_outer_classname = "HelloWorldProto"; // The greeting service definition. service Simple { // Sends a greeting rpc SayHello (HelloRequest) returns (HelloReply) { } } // The request message containing the user's name. message HelloRequest { string name = 1; } // The response message containing the greetings message HelloReply { string message = 1; } ``` ## go grpc https://gitee.com/liyi_236/grpc-demo ## gRPC文档 【有道云笔记】gRPC快速实战与基本原理培训 https://note.youdao.com/s/ClJqKmL5