Skip to content

Commit a4329fc

Browse files
committed
update
1 parent 57a3ce9 commit a4329fc

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

config-client/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
<artifactId>spring-boot-starter-actuator</artifactId>
3838
</dependency>
3939
<!--使用消息总线刷新配置时添加-->
40-
<!--<dependency>-->
41-
<!--<groupId>org.springframework.cloud</groupId>-->
42-
<!--<artifactId>spring-cloud-starter-bus-amqp</artifactId>-->
43-
<!--</dependency>-->
40+
<dependency>
41+
<groupId>org.springframework.cloud</groupId>
42+
<artifactId>spring-cloud-starter-bus-amqp</artifactId>
43+
</dependency>
4444

4545
<dependency>
4646
<groupId>org.springframework.boot</groupId>

config-client/src/main/resources/bootstrap-amqp1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spring:
1111
discovery:
1212
enabled: true
1313
service-id: config-server
14-
rabbitmq:
14+
rabbitmq: #rabbitmq相关配置
1515
host: localhost
1616
port: 5672
1717
username: guest

config-client/src/main/resources/bootstrap-amqp2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spring:
1111
discovery:
1212
enabled: true
1313
service-id: config-server
14-
rabbitmq:
14+
rabbitmq: #rabbitmq相关配置
1515
host: localhost
1616
port: 5672
1717
username: guest

config-server/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
<artifactId>spring-boot-starter-actuator</artifactId>
3434
</dependency>
3535
<!--使用消息总线刷新配置时添加-->
36-
<!--<dependency>-->
37-
<!--<groupId>org.springframework.cloud</groupId>-->
38-
<!--<artifactId>spring-cloud-starter-bus-amqp</artifactId>-->
39-
<!--</dependency>-->
36+
<dependency>
37+
<groupId>org.springframework.cloud</groupId>
38+
<artifactId>spring-cloud-starter-bus-amqp</artifactId>
39+
</dependency>
4040

4141
<dependency>
4242
<groupId>org.springframework.boot</groupId>

config-server/src/main/resources/application-amqp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spring:
1111
username: macro
1212
password: 123456
1313
clone-on-start: true # 开启启动时直接从git获取配置
14-
rabbitmq:
14+
rabbitmq: #rabbitmq相关配置
1515
host: localhost
1616
port: 5672
1717
username: guest
@@ -21,7 +21,7 @@ eureka:
2121
service-url:
2222
defaultZone: http://localhost:8001/eureka/
2323
management:
24-
endpoints:
24+
endpoints: #暴露bus刷新配置的端点
2525
web:
2626
exposure:
2727
include: 'bus-refresh'

config-server/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spring:
1111
username: macro
1212
password: 123456
1313
clone-on-start: true #开启启动时直接从git获取配置
14-
search-paths: '{application}'
14+
# search-paths: '{application}'
1515
eureka:
1616
client:
1717
service-url:

0 commit comments

Comments
 (0)