-
0 votesanswersviews
Feign Consul:仅启用发现(客户端),而不启用注册(服务)
引用docs: @EnableDiscoveryClient使app成为Consul“服务”(即它自己注册)和“客户端”(即它可以查询Consul以查找其他服务) . 如何配置使用Feign作为REST客户端的Spring Boot应用程序并在Consul中查找服务实例但不在Consul中注册应用程序本身? 我试过了: 一个 . 各种组合 spring.cloud.consul.enabled... -
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-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... -
1 votesanswersviews
Consul 问题与spring boot 2.0.0
我刚迁移到最新的spring boot 2.0.1.RELEASE并开始使用 Cloud 版本“Finchley.RC1” . 我使用consul作为配置和服务注册表/发现服务器 . 但是一旦我启动应用程序,它就会尝试从“localhost:8888”加载配置,这是针对eureka的 . 我在application.properties中配置了consul主机和端口,但我仍然看到了相同的行为 . ... -
0 votesanswersviews
我的spring-cloud-consul演示没有注册到consul服务器
我正在以 Consul 作为服务发现实现学习spring cloud,我在互联网上学习了一个教程 . 我正在使用eclipse和maven . pom文件由 Spring Initializr 生成 . 从 Spring 季官方文档来看,他们说"@EnableDiscoveryClient"不再需要了,所以我对此进行了评论,但这种说法没有任何区别 . 我的代码如下: pack... -
1 votesanswersviews
Spring Cloud 咨询配置
我正在尝试为spring cloud consul配置编写自定义配置 . 我能够使应用程序与自动配置一起工作 . https://cloud.spring.io/spring-cloud-consul/multi/multi_spring-cloud-consul-config.html 我只需要手动定义所需的bean来做同样的事情 . 有人可以帮助我理解所需的bean /配置来完成这项工作 ....