Questions tagged [spring-cloud-consul]

Spring Cloud Consul provides Consul integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms.

Spring Cloud Consul features:

  • Service Discovery: instances can be registered with the Consul agent and clients can discover the instances using Spring-managed beans
  • Supports Ribbon, the client side load-balancer via Spring Cloud Netflix
  • Supports Zuul, a dynamic router and filter via Spring Cloud Netflix
  • Distributed Configuration: using the Consul Key/Value store
  • Control Bus: Distributed control events using Consul Events

https://cloud.spring.io/spring-cloud-consul/

154 questions
1
vote
0 answers

api-gateway with Spring cloud with zuul and consul for service discovery

I am trying to create a small API-gateway which employs Spring-cloud with Zuul as proxy and consul as service discovery. Following is my…
1
vote
1 answer

spring consul services are all healthy but can't reach each other when on different hosts

Running Consul and spring-cloud-consul I have five micro services all registered and showing as healthy. Each of these services is running on a different EC2 instance. Using the name of the micro service that is registered in consul I can't get a…
Chris
  • 3,437
  • 6
  • 40
  • 73
1
vote
1 answer

MethodValidationPostProcessor causes further validation failure

I'm trying to add Spring Cloud Consul into an existing Spring Boot app with spring validation enabled. It's all good until I run the app, and it fails on the validation of a properties bean annotated with @Validated As far as I got it, here's what…
1
vote
1 answer

How to exclude auto-configuration from Spring Boot WebMvcTest

I am trying to implement a Spring Boot Mock MVC unit test and would like to exclude the spring-cloud-consul auto configuration to avoid requiring connectivity to a remote service. It looks like I should be able to achieve this with the below: …
Patrick Bray
  • 552
  • 2
  • 7
  • 20
1
vote
2 answers

service discovery of consul from a monolith application

I have a monolith application A, which needs to invoke a microservice B via service discovery . Consul is the service discovery server used. Microservice B is registered with the Consul server. From A i am able to invoke B by giving…
Mohammed Rafeeq
  • 2,586
  • 25
  • 26
1
vote
0 answers

In spring-cloud-consul-discovery how to configure a watch over services

Consider a scenario where I have a watcher-service which is registered in consul. In this watcher service, I want to trigger some emails based on the behaviour of other services i.e. when other services are up, when a new service is added and when a…
rohit
  • 862
  • 12
  • 26
1
vote
4 answers

spring-boot client unable to start with consul

I have setup and run consul using docker on my system using following command: sudo docker run -p 8500:8500 consul:0.9.2 Consul is running fine as I can check from the consul UI (Image attached below): Now, I am trying to run my spring-boot…
gschambial
  • 1,383
  • 2
  • 11
  • 22
1
vote
1 answer

throw ConverterNotFoundException using spring-cloud-consul for int property

I got the following error message when starting a spring boot/cloud application which gets some properties from consul: *************************** APPLICATION FAILED TO START *************************** Description: Binding to target…
Tonny Tc
  • 852
  • 1
  • 12
  • 37
1
vote
0 answers

Spring boot consul - trigger an event on health check failure

I have a spring boot consul application. I would like that on server fail ober to get an event in my system (like today I have an event whenever a Key Value is changing , an RefreshEvent is throwen ). Is there a way to trigger such in event…
yoav.str
  • 1,547
  • 6
  • 33
  • 73
1
vote
0 answers

spring-cloud-consul is not compatible with spring-boot-2.0.0.M1

It seems that current release of spring-cloud-consul(which is 1.2.2-snapshot at this moment) is not compatible with spring-boot-2.0.0.M1. As a new comer of microservice, i'm trying to integrate consul into my project to support service registry,…
Essviv
  • 11
  • 2
0
votes
0 answers

Spring cloud consul use in spring application

How we can use spring cloud consul in spring application like the way we do in Spring Boot. I want spring application to fetch application properties directly from consul on its initialisation.
Anuj Kumar
  • 514
  • 1
  • 4
  • 8
0
votes
1 answer

Circular dependencies between spring included components?

I have multiple applications that share the same configuration classes and once with spring boot v3 I received multiple circular dependencies errors. Most of them were legit mistakes from my side and I manage to refactor the code and fix them, but…
0
votes
0 answers

How to refresh CachingRouteLocator in spring cloud gateway and Consul

I have a Spring Cloud Gateway application, which uses Consul to define routes based on the services registered in Consul. I noticed that Spring configures RouteLocator to be CachingRouteLocator by default, but this cache is never invalidated or…
ATrubka
  • 3,982
  • 5
  • 33
  • 52
0
votes
1 answer

Failed to bind properties under 'spring.cloud.consul.config' #820

APPLICATION FAILED TO START Description: I have a springboot application in which I am trying to configure vault and consul with consul i am facing below error: Failed to bind properties under 'spring.cloud.consul.config' to…
0
votes
0 answers

Spring Cloud Gateway and Consul - All service checks failing

I have a Spring Cloud Gateway infrastructure with multiple microservices and a gateway. I have enabled Consul for service discovery functionality. In the Consul console, I can see all the registered microservices without any issues, but the gateway…
Mark116
  • 653
  • 1
  • 6
  • 23