-
0 votesanswersviews
保护spring cloud配置的最佳方法是什么?
我有一个运行Spring总线的spring cloud配置服务器 . 我想让对该服务器的调用安全: 当客户端要求配置时 . 调用/ monitor时 - 由webhook使用 . 这样做的最佳做法是什么?基本?加密?有人能提供一个有效的例子吗? 谢谢! -
0 votesanswersviews
使用git webhook,spring cloud bus和application autorefresh进行配置更改
如果我有三个Spring启动应用程序,如Person,Customer,order with spring.application.name作为person,customer,order,并且每个应用程序都在github Person.yml,Customer.yml,Order.yml中进行配置 . 每个应用程序都有两个运行的实例,如Person1,Person2,Customer1,Custo... -
0 votesanswersviews
如何为spring-cloud-starter-bus-kafka 1.2.0.RELEASE提供SSL配置
我使用的是Spring Boot 1.5.6.RELEASE,Spring Cloud Config 1.3.2.RELEASE和Spring Cloud Starter Bus(Kafka)1.2.0.RELEASE,Kafka版本是0.10.1.1 . 我正在尝试将其配置为使用两个启用ssl的代理,但我最终得到一个重复的警告消息序列(每个代理一个),如下所示: Bootstrap broker... -
1 votesanswersviews
在Spring Cloud Config Client中启用/总线/刷新 endpoints
我的Spring Cloud Config Client依赖于 spring.cloud.starter.bus.amqp ,但它仍未启用 /bus/refresh endpoint build.gradle compile("org.springframework.cloud:spring-cloud-starter-stream-rabbit:1.1.3.RELEASE&qu... -
2 votesanswersviews
Spring Cloud Config Spring Cloud Bus RabbitMQ - 不使用本地Git存储库自动刷新客户端
我有一些应用程序从Spring Cloud Config Server( Brixton.RELEASE )获取其配置,并希望启用其属性的自动刷新 . 我已经按照Spring Cloud Config documentation来配置服务器和客户端应用程序,但是当对本地git文件进行更改时没有任何反应 . 默认配置还检测本地git存储库中的文件系统更改(在这种情况下不使用webhook,但只要编... -
2 votesanswersviews
问题spring-cloud-config和spring-cloud-bus
我有三个应用程序,一个是spring-cloud-config服务器点,另一个是spring-cloud-config客户 endpoints . 我在彼此配置spring-cloud-bus以使我的客户 endpoints 自动刷新更改但在我的应用程序运行中,我得到了一个异常 c.netflix.discovery.TimedSupervisorTask : task supervisor ... -
1 votesanswersviews
Spring Cloud Config Server如何将纯文本文件推送到配置客户端应用程序?
到目前为止我实施的是: Spring Cloud Config Server with "native" repo . spring.profiles.active: native spring.cloud.config.server.native.searchLocations: file:/path/to/config-repo Config Server正在通过R... -
0 votesanswersviews
Spring 天 Cloud 总线有时不能按预期工作
我使用spring-cloud-bus,config server,config client和rabbitmq(使用docker image) . 在我的设置中,有2个配置客户端和2个配置服务器 . 当config-clients,config-servers和rabbitmq在一台计算机(linux或windows)上运行时,spring-cloud-bus运行良好,即当我请求任何config... -
0 votesanswersviews
为什么spring-cloud-config示例测试需要旋转配置服务器?
我想为我的配置服务器编写单元/集成测试,所以我检查了this link . 有一个用 @SpringBootTest 注释的类,还有一个用 @BeforeClass 注释的函数 startConfigServer() . 为什么需要这个函数,因为有 @SpringBootTest 注释? 我可以为配置服务器编写哪些其他单元测试用例和集成测试?我还使用Spring Cloud Stream Kaf... -
1 votesanswersviews
刷新没有队列的Spring Cloud配置
使用Spring Cloud Config时,只有在微服务启动期间才能读取GIT中的配置更改 . 使用 Actuator 时,也可以手动调用/执行/刷新终点 . 实时传播此类更改的示例涉及Spring Bus Cloud,它需要安装RabbitMQ,Kafka,这对我来说看起来有点过分以制作这么简单的事情 . 它还需要在每个服务中添加队列依赖性 . 当我使用Eureka或其他发现服务时,所有实例都... -
0 votesanswersviews
Spring 天 Cloud 总线限制总线/刷新
我正在使用带有Rabbit MQ的Spring Cloud Bus将配置更改广播到多个应用程序 . 我知道使用 endpoints - http://localhost/bus/refresh?destination=app1:**将刷新app1的所有实例,而 endpoints - http://localhost/bus/refresh将刷新所有应用程序的所有实例,因为Spring C... -
2 votesanswersviews
Spring Cloud Bus,如何在/ bus / refresh中指定多个目标?destination =?
我有一个使用Spring Cloud Config和Spring Cloud Bus的配置服务器以及一些也有Spring Cloud Bus的客户端 . 每次我更改配置时,我都会使用邮递员发送/总线/刷新到配置服务器 . 我找到了两种方法: 刷新特定客户端:http://localhost/bus/refresh/app1:dev:8080 刷新所有客户:http://localhost/... -
0 votesanswersviews
Spring Cloud Config Server(Finchely.M9)没有将事件推送到RabbitMQ
这个问题在这里解释,但已经有好几周没有回应这张票,https://github.com/spring-cloud/spring-cloud-bus/issues/112 . 简而言之,我正在使用Spring Cloud Config Server / Client(git支持)以及Spring Cloud Bus来广播更改,如果有任何配置文件 . 我已经注册了一个webhook,它将命中https... -
2 votesanswersviews
Spring Cloud Bus - 客户端不会收到更改
关于使用RabbitMQ实现Spring Cloud Bus,我认为我处于死胡同 . 请记住,这是通过 Spring Boot 2.0.0.M7 and Spring Cloud Finchley.M5 完成的,根据他们的发行说明应该兼容 . 我想让这个工作: 编辑Config服务器的Git存储库中的.yml文件 ConfigServer应该通过GitHub的webhook接收通知(通过n...