Spring boot 带有RabbitMQ:Props的Spring云配置服务器和客户端在git推送后未更新
我正在Pivotal Cloud Foundry中运行Spring云配置服务器和云配置客户端 第1版: 我可以通过将YML文件推送到git repo来更新客户端属性。我在config client/refresh上发布了一篇文章,更新成功。我通过HTTPS连接 第二版: 我现在尝试使用RabbitMQ自动推送配置更新。My Cloud Config Server成功接收到对Config Server/monitor端点的gitlab webhook POST调用。配置服务器看到更新并向我的配置客户端发送消息 但是,问题是客户端从不更新其属性。我认为它不知道它的任何属性文件都被更新了。[它可能不知道具体更新了什么文件…] 我想用gitlab的webhooks做的事情可能吗 谢谢你的帮助 突出显示应用程序上下文重新加载的客户端日志条目。这发生在代码推送之后:Spring boot 带有RabbitMQ:Props的Spring云配置服务器和客户端在git推送后未更新,spring-boot,rabbitmq,gitlab,spring-cloud,cloud-foundry,Spring Boot,Rabbitmq,Gitlab,Spring Cloud,Cloud Foundry,我正在Pivotal Cloud Foundry中运行Spring云配置服务器和云配置客户端 第1版: 我可以通过将YML文件推送到git repo来更新客户端属性。我在config client/refresh上发布了一篇文章,更新成功。我通过HTTPS连接 第二版: 我现在尝试使用RabbitMQ自动推送配置更新。My Cloud Config Server成功接收到对Config Server/monitor端点的gitlab webhook POST调用。配置服务器看到更新并向我的配置客
2017-02-03T20:53:59.27-0500 [APP/0] OUT 2017-02-04 01:53:59.274 INFO 19 --- [nio-8080-exec-5] o.s.c.c.monitor.PropertyPathEndpoint : Refresh for: *
2017-02-03T20:53:59.34-0500 [APP/0] OUT 2017-02-04 01:53:59.346 INFO 19 --- [nio-8080-exec-5] nfigurationApplicationContextInitializer : **Adding cloud service auto-reconfiguration to ApplicationContext**
2017-02-03T20:53:59.35-0500 [APP/0] OUT 2017-02-04 01:53:59.358 INFO 19 --- [nio-8080-exec-5] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@3325da05: startup date [Sat Feb 04 01:53:59 UTC 2017]; root of context hierarchy
这些是我的依赖项:
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-bus-parent</artifactId>
<version>1.3.0.M1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-monitor</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bus-amqp</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
org.springframework.cloud
spring云总线父级
1.3.0.M1
聚甲醛
进口
org.springframework.cloud
spring云配置服务器
org.springframework.boot
SpringBootStarterWeb
org.springframework.cloud
spring云配置监视器
org.springframework.cloud
springcloudstarter总线amqp
org.springframework.boot
弹簧起动试验
测试
您似乎需要spring云总线支持,请检查此项。我认为总线正在工作。消息正在从服务器发送到客户端。为什么要导入总线依赖项BOM?以及在此导入的里程碑?@JRB所以您也将@RefreshScope
添加到客户端,对吗?