Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit00feb72

Browse files
committed
update
1 parent654653a commit00feb72

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

‎samples/micro-weather-eureka-client/build.gradle‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ ext {
3434
}
3535

3636
dependencies {
37-
compile('org.springframework.boot:spring-boot-starter-web')
38-
compile('org.springframework.cloud:spring-cloud-netflix-eureka-client')
37+
compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-client')
3938
testCompile('org.springframework.boot:spring-boot-starter-test')
4039
}
4140

‎samples/micro-weather-eureka-client/src/main/java/com/waylau/spring/cloud/Application.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
importorg.springframework.boot.SpringApplication;
44
importorg.springframework.boot.autoconfigure.EnableAutoConfiguration;
5+
importorg.springframework.cloud.netflix.eureka.EnableEurekaClient;
56
importorg.springframework.context.annotation.ComponentScan;
67
importorg.springframework.context.annotation.Configuration;
78
importorg.springframework.web.bind.annotation.RequestMapping;
89
importorg.springframework.web.bind.annotation.RestController;
910

1011
@Configuration
1112
@ComponentScan
12-
//@EnableAutoConfiguration
13-
//@EnableEurekaClient
13+
@EnableAutoConfiguration
14+
@EnableEurekaClient
1415
@RestController
1516
publicclassApplication {
1617

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
#spring.application.name: client
1+
spring.application.name:client
22

3-
#eureka.client.serviceUrl.defaultZone: http://localhost:8761/eureka/
3+
eureka.client.serviceUrl.defaultZone:http://localhost:8761/eureka/
4+
5+
#eureka.client.healthcheck.enabled=true

‎samples/micro-weather-eureka-server/build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ext {
3333
}
3434

3535
dependencies {
36-
compile('org.springframework.cloud:spring-cloud-starter-eureka-server')
36+
compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-server')
3737
testCompile('org.springframework.boot:spring-boot-starter-test')
3838
}
3939

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp