File tree Expand file tree Collapse file tree 5 files changed +23
-30
lines changed
java/ru/romanow/protocols/grpc/service Expand file tree Collapse file tree 5 files changed +23
-30
lines changed Original file line number Diff line number Diff line change @@ -37,36 +37,27 @@ Server Command
3737 find-all: Get all servers
3838` ` `
3939
40- # ## Common modules
41-
42- * [API models](/api)
43- * [Server Common](/common-server)
44- * [Client Common](/common-client)
45-
4640# ## RESTful
4741
48- * [RESTful Server](/restful)
49- * [Rest Client](/rest-client)
50-
51- # #### Запуск сервера
42+ Сервер:
5243
5344` ` ` shell
5445$ ./gradlew restful:bootRun
5546` ` `
5647
5748Для просмотра API доступен [Swagger UI](http://localhost:8080/swagger-ui/index.html)
5849
59- # #### Запуск клиента
50+ Клиент:
6051
6152` ` ` shell
6253$ java -jar rest-client/build/libs/rest-client.jar
6354` ` `
6455
6556# ## GraphQL
6657
67- * [GraphQL Server](/ graphql)
58+ Протокол [servers.graphqls](graphql/src/main/resources/ graphql/servers.graphqls).
6859
69- # #### Запуск сервера
60+ Сервер:
7061
7162` ` ` shell
7263$ ./gradlew graphql:bootRun
@@ -76,34 +67,29 @@ $ ./gradlew graphql:bootRun
7667
7768# ## gRPC
7869
79- * [gRPC Protocol](/grpc-protocol)
80- * [gRPC Server](/grpc-server)
81- * [gRPC Client](/grpc-client)
70+ Протокол [ServerService.proto](grpc-protocol/src/main/proto/ServerService.proto).
8271
83- # #### Запуск сервера
72+ Сервер:
8473
8574` ` ` shell
8675$ ./gradlew grpc-server:bootRun
8776` ` `
8877
89- # #### Запуск клиента
78+ Клиент:
9079
9180` ` ` shell
9281$ java -jar grpc-client/build/libs/grpc-client.jar
9382` ` `
9483
9584# ## SOAP
9685
97- * [SOAP Server](/soap-server)
98- * [SOAP Client](/soap-client)
99-
100- # #### Запуск сервера
86+ Сервер:
10187
10288` ` ` shell
10389$ ./gradlew soap-server:bootRun
10490` ` `
10591
106- # #### Запуск клиента
92+ Клиент:
10793
10894` ` ` shell
10995$ java -jar soap-client/build/libs/soap-client.jar
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ dependencies {
88
99 api " org.springframework.boot:spring-boot-starter"
1010 api " org.springframework.boot:spring-boot-starter-logging"
11- api " org.springframework.shell:spring-shell-starter"
11+ api " org.springframework.shell:spring-shell-starter-jna "
1212
1313 api " org.jetbrains:annotations:$jetbrainsAnnotationsVersion "
1414}
Original file line number Diff line number Diff line change 1+ spring :
2+ shell :
3+ interactive :
4+ enabled : true
5+ script :
6+ enabled : true
7+
18application :
29 services :
310 server-url : http://localhost:8080
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ import ru.romanow.protocols.grpc.ServerServiceModels.Purpose
1212import ru.romanow.protocols.grpc.ServerServiceModels.StateInfo
1313
1414@Service
15- class GrpcServerClient (
16- @GrpcClient( " local-grpc-server " )
17- private val serverService : ServerServiceBlockingStub
18- ) : ServerClient {
15+ class GrpcServerClient : ServerClient {
16+
17+ @GrpcClient( " default " )
18+ private lateinit var serverService : ServerServiceBlockingStub
1919
2020 override fun create (purpose : String ): String {
2121 val request = CreateServerRequest .newBuilder()
Original file line number Diff line number Diff line change 11grpc :
22 client :
3- local-grpc-server :
4- address : ' static://127.0.0.1:8080'
3+ default :
4+ address : " static://127.0.0.1:8080"
55 negotiationType : plaintext
You can’t perform that action at this time.
0 commit comments