Skip to content

Commit f04486f

Browse files
committed
Adapt examples to new version
1 parent c5df564 commit f04486f

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

examples/cloud-eureka-server/src/main/resources/bootstrap.yml renamed to examples/cloud-eureka-server/src/main/resources/application.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ eureka:
1717
registerWithEureka: false
1818
fetchRegistry: false
1919
serviceUrl:
20-
defaultZone: http://localhost:8761/eureka/
20+
defaultZone: http://localhost:8761/eureka/
2121
server:
2222
enable-self-preservation: false
2323

24-
endpoints:
25-
shutdown:
26-
enabled: true
24+
management:
25+
endpoint:
26+
shutdown:
27+
enabled: true

examples/cloud-grpc-client/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ dependencies {
66
implementation 'org.springframework.boot:spring-boot-starter-web'
77
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
88
implementation 'org.springframework.boot:spring-boot-starter-actuator'
9-
implementation 'org.springframework.cloud:spring-cloud-sleuth-zipkin'
10-
implementation 'io.zipkin.brave:brave-instrumentation-grpc'
9+
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
1110
implementation project(':grpc-client-spring-boot-starter') // replace to implementation("net.devh:grpc-client-spring-boot-starter:${springBootGrpcVersion}")
1211
implementation project(':examples:grpc-lib')
1312
}

examples/cloud-grpc-server/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ dependencies {
66
implementation 'org.springframework.boot:spring-boot-starter-web'
77
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
88
implementation 'org.springframework.boot:spring-boot-starter-actuator'
9-
implementation 'org.springframework.cloud:spring-cloud-sleuth-zipkin'
10-
implementation 'io.zipkin.brave:brave-instrumentation-grpc'
9+
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
1110
implementation project(':grpc-server-spring-boot-starter') // replace to implementation "net.devh:grpc-server-spring-boot-starter:${springBootGrpcVersion}"
1211
implementation project(':examples:grpc-lib')
1312
}

0 commit comments

Comments
 (0)