Questions tagged [spring-cloud]

Spring Cloud provides tools to quickly build common patterns in distributed systems (e.g. configuration management, service discovery, circuit breaker, intelligent routing, micro-proxy, control bus, global locks, leadership election, distributed sessions). Coordination of these systems leads to boiler plate patterns, and using Spring Cloud you can quickly create applications that implement those patterns.

Spring Cloud provides tools for developers to quickly build some of the common patterns in distributed systems (e.g. configuration management, service discovery, circuit breakers, intelligent routing, micro-proxy, control bus, one-time tokens, global locks, leadership election, distributed sessions, cluster state). Coordination of distributed systems leads to boiler plate patterns, and using Spring Cloud developers can quickly stand up services and applications that implement those patterns. They will work well in any distributed environment, including the developer's own laptop, bare metal data centres, and managed platforms such as Cloud Foundry.

5046 questions
13
votes
4 answers

How does Spring Cloud Sleuth propagate the MDC context in Webflux ouf of the box so that its content can be logged in different threads?

I'd like to know how Spring Cloud Sleuth propagates the MDC context between threads making the MDC params available each of them. I've read this article https://simonbasle.github.io/2018/02/contextual-logging-with-reactor-context-and-mdc/ that…
13
votes
1 answer

Alternative for OAuth2FeignRequestInterceptor that depends on a deprecated class

Disclaimer: I honestly tried to google/github this, scanned through the OAuth2 migration guide, but couldn't find an answer to this, so here we go. org.springframework.cloud.security.oauth2.client.feign.OAuth2FeignRequestInterceptor from…
13
votes
1 answer

Caused by: java.lang.IllegalStateException: You need to configure a uri for the git repository

I am developing Microservices with Spring Boot 2.0, Eureka and Spring Cloud taking a ref from : https://piotrminkowski.wordpress.com/2018/04/26/quick-guide-to-microservices-with-spring-boot-2-0-eureka-and-spring-cloud/. In this example, I am…
Jeff Cook
  • 7,956
  • 36
  • 115
  • 186
13
votes
3 answers

What is the purpose of using Spring cloud? What is the difference between AWS and Springcloud?

Why we need Spring cloud? What is the difference between AWS and Spring Cloud?
Raj
  • 161
  • 1
  • 3
13
votes
6 answers

actuator /refresh is not being provided in SpringBoot 2.0.1

I am creating a demo project for Spring-Config-Server and Spring-Config-Client. In SpringBoot 1.5.6.RELEASE everything is working fine. However, when I am upgrading project to 2.0.1.RELEASE it does not provide the actuator endpoints. Actuator…
13
votes
7 answers

Adding the traceId from Spring Cloud Sleuth to response

I am currently implementing Spring Cloud Sleuth in our project. I have a requirement to add the traceId to the response headers. Is there a way that this can be achieved? Thanks, Anoop
Anoop
  • 813
  • 2
  • 10
  • 24
13
votes
1 answer

What is the canonical way to do blue/green deployment with the Spring Cloud/Netflix stack on PWS?

I'm experimenting with a setup that is very much like the one detailed in the image here: https://raw.githubusercontent.com/Oreste-Luci/netflix-oss-example/master/netflix-oss-example.png In my setup, I'm using a client application…
13
votes
2 answers

Authorization header not passed by ZuulProxy starting with Brixton.RC1

In switching from Spring Cloud Brixton.M5 to Brixton.RC1 my ZuulProxy no longer passes Authorization headers downstream to my proxied services. There's various actors in play in my setup, but most all of them are fairly simple: -…
Tim
  • 19,793
  • 8
  • 70
  • 95
13
votes
1 answer

Spring cloud SQS - Polling interval

Listening to a AWS SQS queue, using spring cloud as follows: @SqsListener(value = "${queue.name}", deletionPolicy = SqsMessageDeletionPolicy.ON_SUCCESS) public void queueListener(String message, @Headers Map sqsHeaders) { //…
13
votes
4 answers

Detecting refreshing of RefreshScope beans

It is my understanding that when you use Spring Cloud's RefreshScope annotation, a Proxy to the data is injected, and the proxy is automatically updated if the backing information is changed. Unfortunately, I need to find a way to be alerted when…
Cobra1117
  • 1,150
  • 3
  • 11
  • 26
13
votes
1 answer

Multiple Zuul routes to one service

Most of the examples that I see are one route definition to one service. so this sort of thing: zuul: routes: myserver: path: /mypath/** Lets say that I want to route several routes to one service so in effect it would be like…
EvilJinious1
  • 2,773
  • 6
  • 43
  • 63
12
votes
4 answers

Vault error while writing

I wanted to test Spring Cloud Vault configuration. I installed a Vault server locally and when i try to write some key-values its failing and asking me to use vault kv put command. While the example of Spring Cloud Config in this link shows the…
Arun
  • 3,440
  • 11
  • 60
  • 108
12
votes
3 answers

Spring Cloud Sleuth + log4j2

Some of my microservices use log4j2 as logger. Spring cloud Sleuth has support for logback. How can I use Sleuth to get distributed tracing in this scenario. I understand to use sleuth with log4j2, I have to implement certain class. I tried this but…
barun
  • 393
  • 1
  • 5
  • 19
12
votes
3 answers

No plugin found for prefix 'docker' in the current project and in the plugin groups

deploy Spring Cloud project with docker, some code in the pom.xml: org.springframework.boot spring-boot-maven-plugin
Python Basketball
  • 2,320
  • 3
  • 24
  • 47
12
votes
3 answers

SpringBoot FeignClient Method has too many paramters

im using spring-cloud's feignClient and things go wrong when there is more than one Beans paramters in my interface,error shows like: Caused by: java.lang.IllegalStateException: Method has too many Body parameters: public abstract…
W.Lin
  • 121
  • 1
  • 1
  • 3