-
2 votesanswersviews
在没有 spring 启动的Web应用程序中使用spring cloud config
我想知道有没有办法在spring web应用程序中使用没有spring boot的spring cloud配置客户端 . 我想使用带有@Value注释的spring cloud配置,我不喜欢在我的web应用程序中使用spring cloud server rest api我已经尝试了开发人员在Spring Cloud Config Client Without Spring Boot链接中所说的但... -
0 votesanswersviews
如果Git存储库关闭,则Spring Cloud Config Server可用性
我们在AWS ECS中运行Spring Cloud Config Server并使用Bitbucket作为Git存储库 . 上周Bitbucket停机了几个小时,在此期间我们的Spring Cloud Config Server容器在ECS中重新启动 . 这意味着我们没有存储库的本地缓存并且无法访问远程存储库,因此任何需要从配置服务器进行配置的重新启动微服务都将无法启动 . 有没有办法配置Spri... -
0 votesanswersviews
在HA模式下启用Spring Cloud 配置客户端
我正在尝试通过Spring Cloud配置启用外部化配置的解决方案 . 问题是,当Gitlab URL不可用时,客户端应用程序将无法正常启动(应用程序/微服务已启动但状态为DOWN) . 为了缓解这个问题,我正在创建一个POC来创建两个不同的Spring Cloud 配置服务器 . 第一个连接到GITLAB,第二个连接到SVN作为后备 . 配置服务器URL都可以在bootstrap.propert... -
1 votesanswersviews
Library jar可以从Spring Cloud Config Server读取属性吗?
我有一个共享库,需要来自.properties文件的一些属性 . Spring Boot应用程序将使用此共享库 . 我们已经有一个Spring Cloud Config服务器,它服务于Spring Boot应用程序的属性 . 现在,我们希望从Config Server获取库的属性,而不是将其属性文件与库jar文件一起打包 . Can I let my Library file pick-up p... -
1 votesanswersviews
Spring启动和Spring cloud配置客户端错误
我正在尝试使用spring cloud配置客户端配置和运行spring boot应用程序 . 我已成功运行配置服务器,但客户端在加载应用程序上下文时出错 . 在搜索时,我得到了版本/依赖冲突等的指针,并尝试使用不同的版本 . 任何帮助将非常感激 . 错误代码段: Caused by: java.lang.ClassNotFoundException: org.springframework.con... -
5 votesanswersviews
在Spring Cloud 配置客户端之间共享配置
我正在尝试使用具有基于文件的存储库的Spring Cloud配置服务器在Spring Cloud客户端之间共享配置: @Configuration @EnableAutoConfiguration @EnableConfigServer public class ConfigServerApplication { public static void main(String[] args... -
2 votesanswersviews
使用Cloud Config Server时的Spring Boot外部配置顺序?
我开始使用Spring Cloud Config,并希望为客户端提供一种覆盖来自cofnig服务器的属性的方法 . 但是,在阅读https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html之后, Cloud 配置何时适用并不明显 . 我也读过http://cloud... -
0 votesanswersviews
没有Eureka,Ribbon和spring boot的Spring cloud配置客户端
我在AWS中运行了spring web应用程序(不是spring boot) . 我正在尝试创建集中配置服务器 . 如何在更改属性后刷新spring-cloud-client?根据教程 Actuator endpoints 通过向客户端的刷新 endpoints 发送空HTTP POST,http:// localhost:8080 / refresh,然后通过查看http:// localho... -
1 votesanswersviews
为什么Spring cloud配置客户端在引导程序中加载其配置
我目前正在开发一个自定义配置客户端,如spring cloud config client . 原因是有一些特殊情况,Spring cloud配置客户端不适用于我的特殊情况 . 为此,像spring cloud config客户端一样,我正在使用spring cloud context . 正如我所见,spring cloud config client在bootstrap阶段加载其配置,但我没有... -
0 votesanswersviews
Spring Boot应用程序未与Cloud Config Server连接
我的Spring启动应用程序与Spring Cloud Config Server连接以获取外部化属性,但突然没有连接/与配置服务器通信 . 我做了很多改变,不确定哪一个可能导致这个问题 . 我在spring启动应用程序中验证了bootstrap.yml文件,存在以下配置,并且spring cloud配置服务器正在该位置运行 spring:application:name:abc cloud:... -
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/... -
1 votesanswersviews
如果Config-Server在初始启动期间关闭,则Spring Config-Client不会刷新
我正在使用准系统Spring Cloud 配置服务器和客户端应用程序进行测试 . 在config-server最初关闭后,我执行了刷新方案(通过在客户端应用程序上调用/刷新 endpoints ) . 这是我发现的 在启动时无法访问config-server时,客户端启动本地打包的属性 . (我在application.yml中的属性与客户端应用程序捆绑在一起) 与本地打包版本相比,Gi... -
1 votesanswersviews
当以发现方式配置spring cloud配置服务器时,为什么必须在`bootstrap.properties`中提供eureka.client.serviceUrl.defaultZone?
我的目标是通过在 application.properties 中设置 spring.applicaton.name 和 server.port 和 eureka.client.serviceUrl.defaultZone 以及 bootstrap.properties 中的 spring.cloud.config.discovery.enabled=true 和 spring.cloud.con... -
0 votesanswersviews
Spring Cloud Config Server(Spring Boot应用程序)上刷新了[]的空列表
在我的Spring Cloud配置服务器pom.xml中 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.0.REL... -
4 votesanswersviews
Spring Cloud Config对称密钥
我使用Spring Cloud Config Server设置了一个简单的项目,我试图简单地加密和解密一些值 . 我使用以下带有Spring Boot的pom.xml将项目创建为Spring Starter项目 . pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns=&... -
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... -
1 votesanswersviews
Spring Cloud Config Server纯文本
我一直在研究Spring Cloud Config Server,但我无法按照预期返回纯文本文件 . 这里的概述http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_serving_plain_text描述了通过和 endpoints 提供实际文件内容的能力: /foo/default/master/nginx.c... -
1 votesanswersviews
spring cloud config client从服务器加载纯文本
作为 Headers ,我想知道是否有一些方法可以从配置服务器获取纯文本 . 我从How Spring Cloud Config Server PUSH plain text files to Config Client Application?找到了一条路 . restTemplate.getForObject("http://localhost:8080/application/... -
0 votesanswersviews
Spring cloud配置客户端获取纯文本文件
spring cloud配置服务器可以提供纯文本文件,如下所述:https://cloud.spring.io/spring-cloud-config/multi/multi__serving_plain_text.html 如果我将 Cloud 服务器URL卷曲为curl http://config.server:8001/config-server/ConfigData/default/mas... -
5 votesanswersviews
当我使用Finchley.M5时,spring-cloud-starter-eureka没有解决
尝试使用Spring Cloud 网关创建自己的api网关 下面是我的build.gradle文件, buildscript { ext { springBootVersion = "1.5.9.RELEASE" } apply plugin: "io.spring.dependency-management" apply plugin:... -
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... -
5 votesanswersviews
配置Spring Cloud Config Server和Spring Cloud Vault进行 生产环境
我正在尝试设置由Spring Cloud Vault秘密管理支持的Spring Cloud Config Server . 我对Spring比较新,但我在这里尝试了以下说明和示例: - http://cloud.spring.io/spring-cloud-vault-config/ 如果您按照默认设置(如http,localhost和8200用于保险库 endpoints )和tls_disab... -
1 votesanswersviews
扩展Spring Cloud Config Client的正确方法是什么?
我想用oAuth实现替换Spring Cloud Config Server的基本身份验证 . 让我们暂时离开Config Server,关注Config Client的更改 . 显然,我不想为整个事情编写自己的实现,而是在标准的Config Client上执行我自己的逻辑和回退 . 此外,我必须将我的更改打包到库中,因为我将在多个微服务中使用它 . 长话短说我想实现以下目标: 1A . 创建自定... -
2 votesanswersviews
运行main()时Spring Cloud Config Server未强制执行BASIC身份验证
我已经配置了一个Spring Cloud Config服务器来强制进行BASIC身份验证,这里是我的application.yml文件: # Config Repo: spring: cloud: config: server: git: uri: file:///${HOME}/microservices_config_repo # ... -
3 votesanswersviews
Spring Cloud 注册了同一服务的多个实例
我正在开发一个使用Spring Boot的微服务,它暴露了REST endpoints . 由于可伸缩性,我必须在不同的端口上运行此服务的多个实例 . 应用程序的配置是什么,以便它可以注册到eureka并且请求是负载 balancer 的?我正在使用Spring Cloud 配置,Eureka服务器和zuul . -
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... -
0 votesanswersviews
Spring Cloud Config Server无法解析占位符
我已经将spring-cloud-config-server添加到我的堆栈中,希望为不同的spring配置文件(即开发,登台和 生产环境 )加载不同的配置集 . 我的配置服务器应用程序在端口8888上启动,直接从私有gitlab存储库获取配置并具有安全性 . 我通过手动命中并检查正确的属性是否返回来测试它 . 到现在为止还挺好 . 我将有几个“客户端”应用程序,我想从我的配置服务器使用属性,但现在... -
1 votesanswersviews
使用Spring Cloud Config进行配置
我想问两个关于 Spring Cloud Config 的问题 . 1) 是否可以执行 Spring Cloud Config Server 来恢复基础 mongodb 而不是 git 的属性? 2) Spring Cloud Config Client 在 Spring Cloud Config Server 中拥有所有权变更时会自动更新? 谢谢!!! -
1 votesanswersviews
Spring spring配置服务器客户端可以监听新的更新事件吗?
Spring spring配置服务器客户端可以监听新的更新事件吗?例如:git仓库中的新提交 - >服务器发送事件 - >客户端通知和自定义函数调用! Thank you! -
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...