Skip to content

Commit 1ebba9d

Browse files
update
1 parent 0bf1391 commit 1ebba9d

12 files changed

Lines changed: 201 additions & 117 deletions

File tree

notes/微服务/SpringCloud.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,6 @@ eureka:
271271

272272
3.编码
273273

274-
275-
276274
city2 -> 远程对象- >city
277275

278276
远程对象: RestTemplate ,将该对象 放入IoC容器

sources/microservice/.idea/workspace.xml

Lines changed: 181 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sources/microservice/micro_city/src/main/resources/application.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
eureka:
2+
instance:
3+
instance-id: cityId
4+
5+
client:
6+
service-url:
7+
defaultZone: http://localhost:9991/eureka/
8+
19
spring:
210
application:
311
name: city

sources/microservice/micro_city/target/classes/application.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
eureka:
2+
instance:
3+
instance-id: cityId
4+
5+
client:
6+
service-url:
7+
defaultZone: http://localhost:9991/eureka/
8+
19
spring:
210
application:
311
name: city
412

513
server:
614
port: 8881
715

8-
ribbon:
9-
eureka:
10-
enabled: false

sources/microservice/micro_city2/target/classes/application.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,3 @@ feign:
1414
hystrix:
1515
enabled: true
1616

17-
ribbon:
18-
eureka:
19-
enabled: false

sources/microservice/micro_city2/target/classes/resources/application.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,3 @@ feign:
1414
hystrix:
1515
enabled: true
1616

17-
ribbon:
18-
eureka:
19-
enabled: false

sources/microservice/micro_config/src/main/resources/application.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
eureka:
2-
instance:
3-
instance-id: cityId
4-
5-
client:
6-
service-url:
7-
defaultZone: http://localhost:9991/eureka/
81

92
server:
103
port: 10010
114

125
spring:
136
application:
14-
name: city
7+
name: config
158
cloud:
169
config:
1710
server:

sources/microservice/micro_config/target/classes/application.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
eureka:
2-
instance:
3-
instance-id: cityId
4-
5-
client:
6-
service-url:
7-
defaultZone: http://localhost:9991/eureka/
81

92
server:
103
port: 10010
114

125
spring:
136
application:
14-
name: city
7+
name: config
158
cloud:
169
config:
1710
server:

sources/microservice/micro_zuul/src/main/resources/application123.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,3 @@ zuul:
1616
routes:
1717
city:
1818
path: /mycity/**
19-
ribbon:
20-
eureka:
21-
enabled: false

sources/microservice/micro_zuul/src/main/resources/bootstrap.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ spring:
44
name: micro
55
profile: zuul
66
label: master
7-
uri: http://127.0.0.1:10010
8-
9-
7+
uri: http://127.0.0.1:10010

0 commit comments

Comments
 (0)