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
367
votes
9 answers

What is the difference between putting a property on application.yml or bootstrap.yml in spring boot?

What is the difference between putting a property on application.yml or bootstrap.yml in spring boot? In logging.config case, the application works differently.
Rys
  • 4,934
  • 8
  • 21
  • 37
140
votes
5 answers

What's the difference between EnableEurekaClient and EnableDiscoveryClient?

In some applications, I saw people are using @EnableEurekaClient. And some other example applications are using @EnableDiscoveryClient. Is there any difference between these two?
YongJiang Zhang
  • 1,989
  • 2
  • 20
  • 25
110
votes
2 answers

How is Spring Cloud Gateway different from Zuul?

I have been using Zuul as the edge service and API Gateway. Recently I have noticed that Spring Cloud Platform release Spring Cloud Gateway. What is the difference between the two gateways? Why is the Zuul not extended to support the functionalities…
101
votes
6 answers

Is there a compatibility matrix of Spring-boot and Spring-cloud?

I am wondering if a compatibility matrix exists between Springboot and Springcloud? I created a simple project on STS and am running into compatibility issues. org.springframework.boot
Manglu
  • 10,744
  • 12
  • 44
  • 57
94
votes
4 answers

Understanding Spring Cloud Eureka Server self preservation and renew threshold

I am new to developing microservices, although I have been researching about it for a while, reading both Spring's docs and Netflix's. I have started a simple project available on Github. It is basically a Eureka server (Archimedes) and three Eureka…
codependent
  • 23,193
  • 31
  • 166
  • 308
67
votes
7 answers

Using @Headers with dynamic values in Feign client + Spring Cloud (Brixton RC2)

Is it possible to set dynamic values to a header ? @FeignClient(name="Simple-Gateway") interface GatewayClient { @Headers("X-Auth-Token: {token}") @RequestMapping(method = RequestMethod.GET, value = "/gateway/test") String…
Hasnain
  • 1,879
  • 2
  • 13
  • 12
66
votes
10 answers

springboot Upgrade from 2.3.5.RELEASE to 2.4.1- ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata

I am trying to upgrade my kotlin - gradle project from springboot version 2.3.5.RELEASE to 2.4.1. Looks like there is version mismatch between springboot-2.4.1 and sping-cloud-Hoxton.SR9. build.gradle.kts snippet plugins { …
KarthiK
  • 841
  • 1
  • 6
  • 11
60
votes
5 answers

What is Eureka service, Eureka Client, Eureka instance and Eureka server

I'm learning spring cloud Netflix by reading this article, however I started to get confused by different terminology in this article, they are: Eureka service. To my understand it's an ordinary service (specifically a Microservice) that running on…
OD Street
  • 1,067
  • 3
  • 14
  • 21
56
votes
10 answers

How can I change the feign URL during the runtime?

@FeignClient(name = "test", url="http://xxxx") How can I change the feign URL (url="http://xxxx") during the runtime? because the URL can only be determined at run time.
liucyu
  • 571
  • 1
  • 4
  • 3
54
votes
7 answers

What are the advantages and disadvantages of using feign over RestTemplate

I get that Feign is declarative and hence it abstracts out a lot of things for the developer. But, when should one choose one over the other? Though feign is declarative, it has serious problems with oAuth. What are some of the considerations in…
codingsplash
  • 4,785
  • 12
  • 51
  • 90
51
votes
8 answers

Zuul timing out in long-ish requests

I am using a front end Spring Cloud application (micro service) acting as a Zuul proxy (@EnableZuulProxy) to route requests from an external source to other internal micro services written using spring cloud (spring boot). The Zuul server is…
EvilJinious1
  • 2,773
  • 6
  • 43
  • 63
50
votes
2 answers

bootstrap.yml configuration not processed anymore with Spring Cloud 2020.0

In my Spring Boot project, I defined 4 profiles demo dev test prod properties in YAML files will be replaced by HashiCorp Vault properties during startup. For this, I use Spring Cloud Vault library. Everything works as expected in Spring Boot…
Pavan Jadda
  • 4,306
  • 9
  • 47
  • 79
45
votes
7 answers

Spring Cloud - SQS - The specified queue does not exist for this wsdl version

I am attempting to get spring cloud to work with messaging using auto configure. My properties file contains: cloud.aws.credentials.accessKey=xxxxxxxxxx cloud.aws.credentials.secretKey=xxxxxxxxxx cloud.aws.region.static=us-west-2 My Configuration…
44
votes
6 answers

Error Injecting FeignClient from another Project

I am having trouble auto wiring a feign client from another project. It appears that the implementation of the feign client is not being generated and injected. This is the error I am getting. org.springframework.beans.factory.BeanCreationException:…
Wes
  • 847
  • 2
  • 10
  • 22
43
votes
7 answers

Property 'spring.profiles.active' imported from location 'class path resource [application-dev.yml]' is invalid

I updated Spring cloud application to the latest Spring boot version 2.5.0. But during startup I get this exception: 11:05:05.038 [main] ERROR org.springframework.boot.SpringApplication - Application run…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
1
2 3
99 100