Spring Cloud Config(Server)Monitor不会通过RabbitMQ

时间:2018-11-22 08:22:56

标签: spring-cloud-config spring-cloud-bus

我正在使用Spring Boot / 2.1.0.RELAESESpring Cloud Dependencies / Greenwich.M3,请考虑以下项目,这些项目具有以下依赖性:

因此,我的configurationserver通过Git存储库(即https://github.com/dnijssen/configuration)获取configurationclient的属性,进行更改后,我将触发/monitor端点我的configurationserver手动(仅用于测试)。应该通过RabbitMQ发送事件,该事件由以下Docker命令启动:

docker run -d --hostname my-rabbit --name some-rabbit -p 5672:5672 -p 15672:15672 rabbitmq:3-management

这给了我以下答复:["*"]

在我的configurationserver上显示以下控制台输出:

2018-11-22 09:19:48.527  INFO 19316 --- [nio-8888-exec-6] o.s.c.c.monitor.PropertyPathEndpoint     : Refresh for: *
2018-11-22 09:19:48.543  INFO 19316 --- [nio-8888-exec-6] o.s.a.r.c.CachingConnectionFactory       : Attempting to connect to: [localhost:5672]
2018-11-22 09:19:48.550  INFO 19316 --- [nio-8888-exec-6] o.s.a.r.c.CachingConnectionFactory       : Created new connection: rabbitConnectionFactory.publisher#79a8318:0/SimpleConnection@34a9bacb [delegate=amqp://guest@127.0.0.1:5672/, localPort= 55205]
2018-11-22 09:19:48.553  INFO 19316 --- [nio-8888-exec-6] o.s.amqp.rabbit.core.RabbitAdmin         : Auto-declaring a non-durable, auto-delete, or exclusive Queue (springCloudBusInput.anonymous.cT0DOhixRX6H82A1zBDF9g) durable:false, auto-delete:true, exclusive:true. It will be redeclared if the broker stops and is restarted while the connection factory is alive, but all messages will be lost.
2018-11-22 09:19:48.880  INFO 19316 --- [nio-8888-exec-6] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$135b8961] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-22 09:19:49.162  INFO 19316 --- [nio-8888-exec-6] o.s.boot.SpringApplication               : No active profile set, falling back to default profiles: default
2018-11-22 09:19:49.165  INFO 19316 --- [nio-8888-exec-6] o.s.boot.SpringApplication               : Started application in 0.6 seconds (JVM running for 29.712)
2018-11-22 09:19:49.228  INFO 19316 --- [nio-8888-exec-6] o.s.cloud.bus.event.RefreshListener      : Received remote refresh request. Keys refreshed []

但是我的configurationclient似乎没有收到任何事件,因此也没有刷新自身。

我在这里想念什么?

亲切的问候,

Dennis Nijssen

0 个答案:

没有答案