/>Вот мой файл прототипа:
Код: Выделить всё
syntax = "proto3";
option java_multiple_files = true;
option java_package = "nasta.grpc.welcome";
message Message {
int32 id = 1;
string name = 2;
}
message Welcome{
string welcome_name = 1;
}
message WelcomeMessage
{
string welcome_name = 1;
}
service SayWelcomeService {
rpc SayWelcome(Message) returns (WelcomeMessage){};
}
Код: Выделить всё
4.0.0
org.springframework.boot
spring-boot-starter-parent
3.3.2
com.example
demo.grpc.server
0.0.1-SNAPSHOT
demo.grpc.server
Demo project for Spring Boot
17
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-test
test
io.grpc
grpc-netty-shaded
1.62.2
io.grpc
grpc-protobuf
1.62.2
io.grpc
grpc-stub
1.62.2
com.google.protobuf
protobuf-java
3.25.3
net.devh
grpc-server-spring-boot-starter
2.15.0.RELEASE
org.springframework.boot
spring-boot-maven-plugin
org.xolstice.maven.plugins
protobuf-maven-plugin
0.6.1
com.google.protobuf:protoc:3.25.3:exe:${os.detected.classifier}
grpc-java
io.grpc:protoc-gen-grpc-java:1.62.2:exe:${os.detected.classifier}
src/main/resources/proto
compile
compile-custom
Подробнее здесь: https://stackoverflow.com/questions/787 ... ng-created