-
2 votesanswersviews
无法使用Consul(SpringCloud Finchley)发现SpringBoot 2.1.1
我试图在SpringCloud的帮助下注册一个示例SpringBoot服务,但没有成功 when using latest versions . 成功的版本: SpringBoot:2.0.0.RELEASE Cloud :Finchley.RELEASE Consul :1.4.0 版本 without 成功: SpringBoot:2.1.1.RELEASE Clou... -
1 votesanswersviews
spring boot管理服务器未显示在eureka服务器上注册的u \ eureka客户端
下面是我的eureka服务器应用程序主类 package com.example.restaurant.server.startup; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.... -
7 votesanswersviews
跨应用程序的Spring Cloud Config Server共享属性
我目前有许多可部署的应用程序,它们以分布式方式工作以解决业务问题 . 我们目前正在使用许多属性配置文件来根据系统环境变量提供每个环境的更改配置 . 所有这些可部署应用程序共享数据库和消息传递的通用配置目前,这是通过从类路径中获取属性文件并使两个已部署的应用程序共享包含属性文件的每个连接(db,jms)的公共jar来实现的 . 我希望尽可能开始使用Spring Config Server外部化此配置... -
2 votesanswersviews
Spring Cloud Config Spring Cloud Bus RabbitMQ - 不使用本地Git存储库自动刷新客户端
我有一些应用程序从Spring Cloud Config Server( Brixton.RELEASE )获取其配置,并希望启用其属性的自动刷新 . 我已经按照Spring Cloud Config documentation来配置服务器和客户端应用程序,但是当对本地git文件进行更改时没有任何反应 . 默认配置还检测本地git存储库中的文件系统更改(在这种情况下不使用webhook,但只要编... -
28 votesanswersviews
没有Spring Boot的Spring Cloud Config客户端
我们将现有的Spring Web应用程序部署为Amazon Elastic Beanstalk中的WAR文件 . 目前,我们将属性文件作为http资源加载,以便为我们提供单一的属性占位符配置解析源 . 我正在调查用新的Spring Cloud 配置服务器替换它,以便为我们提供git版本控制等的好处 . 但是文档(http://cloud.spring.io/spring-cloud-config/... -
2 votesanswersviews
如何在使用spring-cloud-config-client时配置自定义RestTemplate?
我正在尝试使用spring-cloud-config-client在启动时从spring-cloud-config-server应用程序中读取我的配置属性 . 我的应用程序是一个Spring-Boot应用程序,我需要做的是在将请求发送到配置服务器之前为请求添加一个特定的头 . 我已阅读文档(http://cloud.spring.io/spring-cloud-config/spring-clou... -
11 votesanswersviews
如何保护Spring Cloud Config Server
我知道Spring Cloud Config Server可以使用用户名和密码进行保护,用户名和密码必须由访问客户端提供 . 如何阻止客户端将这些用户名和密码以明文形式存储在客户端应用程序/服务的bootstrap.yml文件中? -
1 votesanswersviews
Spring Cloud Config不解密配置服务器密码
我正在研究Spring Cloud Config一段时间 . 我需要保护配置数据 . 根据Spring Cloud Documentation配置了server.jks并添加到classpath . 现在我能够加密和解密远程配置数据 . 为了使配置服务器安全,我添加了spring security starter并分配了凭据(密码已解密) . 由于某种原因,应用程序正在抛出它在类路径上没有密钥存储... -
0 votesanswersviews
Eureka First Bootstrap - 除非eureka服务器具有配置服务器URI,否则无法正常工作
我试图让Eureka设置为使用 Cloud 配置服务器,但Eureka服务器无法在启动时找到configserver的实例: WARN 17584 --- [ main] lientConfigServiceBootstrapConfiguration : No instances found of configserver (CONFIGSERVER) 不确定我在配置方面缺... -
0 votesanswersviews
使用SVN的Spring Cloud Config Server
我正在尝试配置SVN以使用可由Eureka Server发现的Spring Cloud Config Server获取我的配置 . 配置服务器第一次在Eureka中注册为“UP”,但是当我将其关闭并再次启动时,我在Eureka中看到它处于“DOWN”状态 . 我使用这个example作为参考,因为没有太多可用于使用svn作为配置源的文档 任何帮助将非常感激: POM dependency - pe... -
5 votesanswersviews
Eureka:如何禁用/配置对等复制?
当我在8761端口上运行Eureka时,一切都很好 . 配置服务器可以毫无问题地注册到Eureka . 然而,当我将eureka端口更改为7001时,事情就会停止工作,我似乎无法弄清楚如何修复它们 . 这个问题似乎围绕着Eureka无法找到运行的对等节点:http://localhost:8761/eureka . 例外是: 2015-07-05 08:00:47.301 ERROR 4140 -... -
27 votesanswersviews
尤里卡从不注销服务
我直接从git hub拉出了Eureka服务器示例,只进行了一次更改, eureka.enableSelfPreservation = false . 我的application.yml看起来像这样: server: port: 8761 eureka: enableSelfPreservation: false client: registerWithEureka: fal... -
1 votesanswersviews
服务在eureka注册了奇怪的主机名
我设置了一个Eureka实例,然后 Build 了一个向Eureka注册的服务 . 尤里卡:appliation.properties spring.application.name=registry server.port=8761 eureka.client.register-with-eureka=false eureka.client.fetch-registry=false 主要课程... -
0 votesanswersviews
TCP中的Eureka Server
当我创建服务发现服务器时,它自动设置为HTTP @EnableEurekaServer @SpringBootApplication public class DiscoveryServerApplication { public static void main(String[] args) { SpringApplication.run(DiscoveryServerApplicat... -
2 votesanswersviews
Spring Boot Cloud | Zuul代理|附加URL /重写
我使用Spring Boot Cloud | Zuul代理(org.springframework.cloud:spring-cloud-starter-zuul:1.0.0.RELEASE) . 我有以下配置 . info: component: Zuul Server endpoints: restart: enabled: true shutdown: enabl... -
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... -
0 votesanswersviews
使用Spring Cloud配置使用JDBC的Spring Cloud Bus(不带Git)
是否可以使用由JDBC支持的Spring Cloud Config,它在更新配置时向Spring Cloud 总线发布通知(类似于它与Git一起工作但不使用SCM工具的方式)? 目前,我们已配置Spring Cloud Config服务器和客户端,并使用相同的服务监听消息总线,该服务用于在配置更改时刷新所有客户端 . 唯一的问题是,当配置改变webhook为Git源/后端工作的方式时,没有办法自动... -
1 votesanswersviews
刷新没有队列的Spring Cloud配置
使用Spring Cloud Config时,只有在微服务启动期间才能读取GIT中的配置更改 . 使用 Actuator 时,也可以手动调用/执行/刷新终点 . 实时传播此类更改的示例涉及Spring Bus Cloud,它需要安装RabbitMQ,Kafka,这对我来说看起来有点过分以制作这么简单的事情 . 它还需要在每个服务中添加队列依赖性 . 当我使用Eureka或其他发现服务时,所有实例都... -
1 votesanswersviews
spring-cloud-consul与spring-boot-2.0.0.M1不兼容
似乎 spring-cloud-consul (此时为 1.2.2-snapshot )的当前版本与 spring-boot-2.0.0.M1 不兼容 . 作为微服务的新成员,我正在尝试将consul集成到我的项目中以支持服务注册表,但是在将consul starter插入pom.xml之后项目未能启动 . 好的,这里是示例代码: //DemoApplication.java @SpringBoo... -
0 votesanswersviews
如何在Consul中正确注册Spring Boot应用程序(部署到Cloud Foundry)
我按照这个文档:http://cloud.spring.io/spring-cloud-consul/1.0.x/index.html并将我的Spring Boot应用程序配置如下: spring: cloud: consul: enabled: true host: consul.domain.tld port: 443 discov... -
0 votesanswersviews
来自 Consul 的Spring Cloud 门户路线
我无法弄清楚spring-cloud-gateway是否支持从consul注册表中读取路由,就像Zuul一样 . 我添加了spring-cloud-starter-consul-discovery依赖项和@EnableDiscoveryClient,并在application.yml,hovewer,/ actuator / gateway / routes中配置了consul属性,不显示任何来自... -
0 votesanswersviews
只需将spring-boot-dependencies导入为pom,就无法解析spring cloud依赖关系
版本:springboot-2.0.0.RELEASE springcloud-Finchley.RC1 我的项目依赖于spring-cloud-starter-netflix-eureka-client,当我将spring-boot-starter-parent声明为下面的父类时,Idea可以重新启动eureka-client的版本, <parent> <gro... -
4 votesanswersviews
Spring Cloud Config Server无法使用Docker撰写
我有一个spring cloud配置服务器并将其打包为docker图像然后我有spring spring eureka服务器,它也打包为docker image . 当我使用docker compose运行两个时,我得到以下错误 . discovery-service_1 | 2017-06-24 15:36:12.059 INFO 5 --- [ main] c.c.c.ConfigServic... -
0 votesanswersviews
拒绝访问Spring Cloud Config / config endpoints
我有一个嵌入式Spring Cloud Config服务器和客户端 . 我想阻止所有用户访问 https://host:port/config/* endpoints . 在我目前的情况下,例如,对 https://host:port/config/application.yml 执行 HTTP GET 请求的任何人都可以看到整个应用程序配置 . 在 Spring 季文档中提到我可以使用如下的... -
0 votesanswersviews
Spring Cloud Discrovery Eureka - 返回Localhost而不是它所在的主机名
我正在使用Spring Cloud Eureka Server和Config Server作为Discovery First,我的问题是: 当它在eureka服务器中自带的服务注册表时,它返回的配置服务器URL是 http://}:8888 的 http://LOCALHOST:8888 ,并且在其他服务器中托管的所有其他服务都无法找到其配置 . 日志行: 从服务器获取配置:http:// lo... -
0 votesanswersviews
Spring Sleuth向Zipkin发送了10%的请求
默认情况下,Spring Sleuth只向Zipkin发送10%的请求 . 通过设置 spring.sleuth.sampler.percentage ,您可以增加百分比 . 不幸的是,无论我设定的 Value 是多少,它都会停留在10% . 我试过1.0,0.5,1,100 . 输出 /env "spring.sleuth.sampler.percentage": { ... -
0 votesanswersviews
为Spring项目生成脱机文档
作为熟悉Spring提供的框架和功能的一部分,我经常下载他们的PDF文档以便离线阅读 . 例如,核心Spring Framework文档是over 900 pages . 但是,我注意到有相当多的顶级Spring项目没有等效的离线/ PDF文档 . 完整清单: Spring Cloud Spring Social Spring LDAP Spring Session Spring Flo 我记得在... -
0 votesanswersviews
Feign Consul:仅启用发现(客户端),而不启用注册(服务)
引用docs: @EnableDiscoveryClient使app成为Consul“服务”(即它自己注册)和“客户端”(即它可以查询Consul以查找其他服务) . 如何配置使用Feign作为REST客户端的Spring Boot应用程序并在Consul中查找服务实例但不在Consul中注册应用程序本身? 我试过了: 一个 . 各种组合 spring.cloud.consul.enabled...