-
0 votesanswersviews
Spring 天 Cloud 总线限制总线/刷新
我正在使用带有Rabbit MQ的Spring Cloud Bus将配置更改广播到多个应用程序 . 我知道使用 endpoints - http://localhost/bus/refresh?destination=app1:**将刷新app1的所有实例,而 endpoints - http://localhost/bus/refresh将刷新所有应用程序的所有实例,因为Spring C... -
0 votesanswersviews
Eureka-client尝试注册到eureka服务器的随机serviceUrl
使用'Dalston.BUILD-SNAPSHOT'来实现spring-cloud-dependencies,使用spring boot'1.5.2.RELEASE' . 在我目前的设置中,我有 eureka服务器配置服务器(在随机端口上运行) localhost上的Eureka服务器使用以下配置运行 . server: port: 8761 spring: application: ... -
1 votesanswersviews
eureka客户端在配置配置服务器时未注册
我试图使用spring data microservice连接到配置服务器以获取mysql属性 . 我可以看到服务可以与配置服务器通信并获取加载的属性..但是之后它无法在Eureka中注册 . 此外,发现客户端无法发出心跳 当删除配置服务器依赖项并且所有属性都位于application.yml文件中时,它可以正常工作并注册 对此的任何帮助都非常感谢 . Config server Configur... -
0 votesanswersviews
SpringBoot App在Brixton SR3中使用Eureka注册UNKNOWN
我正在运行Spring Cloud Brixton SR3 - Spring Netflix Eureka,Spring Cloud Config和Discovery Client应用程序 . 配置客户端应用程序时 eureka.client.healthcheck.enabled=true 和 spring.cloud.config.discovery.enabled=true 该应用程序启... -
1 votesanswersviews
Eureka Cloud-Config with Wildfly和部署顺序
我需要在Wildfly环境中集成一些SpringBoot服务 . 在野外飞行中有一个Eureka-Server Cloud Config-Service作为WAR运行 . 我看不到仪表板,但是我可以在..eureka / apps中看到XML数据中的自注册服务如果我以独立模式启动Eureka / Cloud Config的SpringBoot客户端 - 它完美地连接到这个Wildfly / Eur... -
1 votesanswersviews
无法通过IDE连接到docker上的jhipster spring注册表
我在docker容器中运行JHipster注册表 . 所有应用程序 running on docker 都可以在注册表 endpoints (端口8761)中进行连接和注册 . 但是当我尝试连接在我的IDEA上运行的应用程序时,我在尝试连接到注册表 endpoints 时收到错误: 2016-07-21 10:35:24.912 INFO 1455 --- [ restartedMain] a... -
2 votesanswersviews
JHipster Registry拒绝网关和微服务
我正在尝试将JHipster用于使用微服务的项目,但最新的JHipster Registry不会让我的网关或微服务访问配置服务器并拒绝它们 . 我安装了JHipster Vagrant DevBox,然后使用 docker run -p 8761:8761 jhipster/jhipster-registry 来运行JHipster注册表 . 然后,我在this之后生成了一个网关和2个微服务,并且... -
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... -
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阶段加载其配置,但我没有... -
3 votesanswersviews
spring config server禁止加密
我已将spring cloud config server配置为使用oAuth2来保证安全性 . 除加密终点外,一切运行良好 . 当我尝试访问 /encrypt 时,我得到403 Forbidden . 我在 Headers 中包含授权承载令牌 . 有没有办法允许在使用oAuth保护服务器时调用加密 endpoints ,或者它是否始终被阻止?如果您想查看此服务器的任何配置文件,请告诉我 . 仅供... -
1 votesanswersviews
用于纯文本文件的Spring Cloud 配置服务器
我按照教程加载纯文本文件:https://github.com/spring-cloud/spring-cloud-config/blob/master/docs/src/main/asciidoc/spring-cloud-config.adoc#serving-plain-text 当我在config服务器中测试以下url时,它完美地工作并返回纯文本文件:http://localhost:88... -
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... -
0 votesanswersviews
Spring Cloud Config Client:从错误的服务器获取配置
当我运行Spring Cloud Config Client项目config-client时,我发现了以下错误: 2018-02-09 10:31:09.885 INFO 13933 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://loc... -
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 # ... -
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存储库获取配置并具有安全性 . 我通过手动命中并检查正确的属性是否返回来测试它 . 到现在为止还挺好 . 我将有几个“客户端”应用程序,我想从我的配置服务器使用属性,但现在... -
0 votesanswersviews
没有Spring启动的Spring Cloud Config Server身份验证
我试图从我的Spring Cloud Config Server获取一些属性文件,而不使用spring boot . 我是通过创建这个类来完成的: @Configuration @PropertySource({"http://localhost:8081/application-default.properties", "http://localhost:8081/... -
1 votesanswersviews
Spring spring配置服务器客户端可以监听新的更新事件吗?
Spring spring配置服务器客户端可以监听新的更新事件吗?例如:git仓库中的新提交 - >服务器发送事件 - >客户端通知和自定义函数调用! Thank you! -
1 votesanswersviews
使用spring cloud config运行多个实例微服务
我正在开发一个 microservice, using Spring Boot ,它暴露了REST endpoints . 为了满足可扩展性约束,将部署 multiple instance of the [same] service (基本上在需要时向上扩展,在不需要时向下扩展) . 我正在使用 Spring Cloud Config Server 为此服务提供配置(例如端口绑定和其他配置) .... -
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... -
1 votesanswersviews
Spring Cloud 咨询配置
我正在尝试为spring cloud consul配置编写自定义配置 . 我能够使应用程序与自动配置一起工作 . https://cloud.spring.io/spring-cloud-consul/multi/multi_spring-cloud-consul-config.html 我只需要手动定义所需的bean来做同样的事情 . 有人可以帮助我理解所需的bean /配置来完成这项工作 .... -
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...