Skip to content

Commit 4304e7b

Browse files
committed
Migrate to Java 21 and Spring Boot 3.3
1 parent c8bbff6 commit 4304e7b

File tree

5 files changed

+23
-30
lines changed

5 files changed

+23
-30
lines changed

README.md

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff 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

common-client/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
spring:
2+
shell:
3+
interactive:
4+
enabled: true
5+
script:
6+
enabled: true
7+
18
application:
29
services:
310
server-url: http://localhost:8080

grpc-client/src/main/java/ru/romanow/protocols/grpc/service/GrpcServerClient.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import ru.romanow.protocols.grpc.ServerServiceModels.Purpose
1212
import 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()
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
grpc:
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

0 commit comments

Comments
 (0)