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
29
votes
2 answers

Spring OAuth Authorization Server behind Spring Cloud Zuul Proxy

I am currently developing a application based on a micro service architecture. We use a API-Gateway implemented using Spring Cloud Netfix's Zuul Server to route the requests to our micro services. To realize single sign on for all our services I am…
Tobias Kremer
  • 1,531
  • 2
  • 15
  • 21
28
votes
3 answers

Using Zuul as an authentication gateway

Background I want to implement the design presented in this article. It can be summarised by the diagram below: The client first authenticate with the IDP (OpenID Connect/OAuth2) The IDP returns an access token (opaque token with no user info) The…
phoenix7360
  • 2,807
  • 6
  • 30
  • 41
28
votes
9 answers

How to POST form-url-encoded data with Spring Cloud Feign

Using spring-mvc annotations: How can I define an @FeignClient that can POST form-url-encoded?
Newbie
  • 7,031
  • 9
  • 60
  • 85
28
votes
3 answers

Unable to get EnableOauth2Sso Working -- BadCredentialsException: Could not obtain access token

I'm trying to get a simple Spring OAuth2 SSO application working and I've been unable to do so. Here's the steps and results of what's happened: Hit endpoint /user, which is secured by OAuth2 I get forwarded to a simple Spring OAuth2 authorization…
27
votes
4 answers

Spring Cloud Gateway - Proxy/Forward the entire sub part of URL

I am using Spring Cloud Gateway 2.0.0.M6 testing a simple gateway. I just want a URL to be forwarded to another URL with ** regex Example 1: /integration/sbl/foo/bar => localhost:4178/a-integration/sbl/foo/bar Example 2: /integration/sbl/baz/bad =>…
Shervin Asgari
  • 23,901
  • 30
  • 103
  • 143
27
votes
6 answers

How to get custom user info from OAuth2 authorization server /user endpoint

I have a resource server configured with @EnableResourceServer annotation and it refers to authorization server via user-info-uri parameter as follows: security: oauth2: resource: user-info-uri: http://localhost:9001/user Authorization…
S. Pauk
  • 5,208
  • 4
  • 31
  • 41
26
votes
3 answers

What is difference between fault tolerance and fault resilience?

I am reading Spring Cloud and NetFlix APIs. Many places, I read Fault Tolerance and Fault Resilience keyword. Please explain the difference.
Ashish Patel
  • 507
  • 1
  • 7
  • 14
26
votes
4 answers

How to ask Spring Cloud Config server to checkout configuration from specific branch?

I have following Spring cloud config application.yml: spring: application: name: configserver cloud: config: server: git: uri: https://xyz@bitbucket.org/xyz/microservices-configs.git username:…
Aman Gupta
  • 5,548
  • 10
  • 52
  • 88
25
votes
3 answers

How spring cloud config use local property override remote property

I know should set following properties, but still confused about where they should be set. spring: cloud: config: allowOverride: true failFast: true overrideNone: false application.properties file on…
allenyu5
  • 503
  • 1
  • 4
  • 9
25
votes
7 answers

Customizing Zuul Exception

I have a scenario in Zuul where the service that the URL is routed too might be down . So the reponse body gets thrown with 500 HTTP Status and ZuulException in the JSON body response. { "timestamp": 1459973637928, "status": 500, "error":…
Grinish Nepal
  • 3,037
  • 3
  • 30
  • 49
25
votes
1 answer

Configuring hystrix command properties using application.yaml in Spring-Boot application

I am having same issue, where i am trying to override the hystrix properties in application.yaml. When I run the app & check the properties with localhost:port/app-context/hystrix.stream, I get all default values instead. here is the hystrix config…
Amrut
  • 971
  • 1
  • 9
  • 17
24
votes
7 answers

SpringCloud 2020.0.2 upgrade generates testing error

I'm trying to upgrade a project from SpringCloud BOM 2020.0.1 to 2020.0.2 When I change the BOM and re-build, I get an error in JUnit tests, saying that the new parameter spring.config.import is not set for configserver. This project is not a…
Sourcerer
  • 1,891
  • 1
  • 19
  • 32
24
votes
2 answers

Disable Spring Cloud AWS autoconfiguration for local development

I use the following Maven dependency which autoconfigures all necessary parameters to make my project work on AWS: org.springframework.cloud spring-cloud-starter-aws
delucasvb
  • 5,393
  • 4
  • 25
  • 35
24
votes
4 answers

How to eliminate the "Eureka may be incorrectly claiming instances are up when they're not" warning on Eureka Dashboard?

How to eliminate the following message on Eureka server dashboard? Will it cause any issue to my services? EMERGENCY! EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY'RE NOT. RENEWALS ARE LESSER THAN THRESHOLD AND HENCE THE …
Krish
  • 1,804
  • 7
  • 37
  • 65
24
votes
2 answers

How to consume basic-authentication protected Restful web service via feign client

Thank you for your time. To make it simple, I created a example service like below: @RestController @RequestMapping("/") public class ComputeController { @GetMapping("/add") public int add(@RequestParam("left") int left,…
Zhuo YING
  • 972
  • 3
  • 11
  • 19