Questions tagged [spring-cloud-netflix]

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

With a few simple annotations you can quickly enable and configure the common patterns inside your application and build large distributed systems with battle-tested Netflix components. The patterns provided include Service Discovery (Eureka), Circuit Breaker (Hystrix), Intelligent Routing (Zuul) and Client Side Load Balancing (Ribbon). Here you can find all the details.

879 questions
17
votes
14 answers

Spring Config Server - No such label: master

I have a simple Spring Cloud Config Server which consume configuration from git server. ConfigServer bootstrap.yml : spring: application: name: config-service cloud: config: server: git: uri:…
mstzn
  • 2,881
  • 3
  • 25
  • 37
17
votes
1 answer

Listening to Eureka events

I have an Eureka server running on a local machine. Eureka clients are registered to this server. I am able to view the eureka dashboard to see the instances registered. Can I have an event listener on the server side that will be triggered when…
16
votes
6 answers

@EnableFeignClients and @FeignClient fail on Autowiring 'FeignContext' NoSuchBeanException

The microservice I'm writting needs to communicate to other microservices in our platform. On that attempt, the ideal solution for us is Spring Cloud Netflix Feign, implemeting a @FeignClient. However, I'm facing the exception below when I try an…
16
votes
2 answers

Test service that uses eureka and ribbon

I'm building an application using microservices with the netflix stack and spring boot. One thing that bugs me is that I have no integration tests yet, where I can mock the surrounding services. So, I have service A which is a eureka client with…
15
votes
3 answers

How to Specify custom filter in application.yml Spring Cloud Gateway

I have a custom gateway filter MYGatewayFilter.java file now i want to use this gateway filter with my route written in application.yml spring: cloud: gateway: routes: - id: login2_route uri: http://127.0.0.1:8083/login …
13
votes
4 answers

How to send POST request by Spring cloud Feign

It's my Feign interface @FeignClient( name="mpi", url="${mpi.url}", configuration = FeignSimpleEncoderConfig.class ) public interface MpiClient { @RequestMapping(method = RequestMethod.POST) public…
koa73
  • 861
  • 2
  • 10
  • 27
13
votes
4 answers

Spring Cloud Zuul does not forward cookies

I am facing a problem with spring cloud Zuul proxy. I hace two microservices configured, up and running. I have a cookie in my web browser and I am using Zuul as an API Gateway, When I hit Zuul to call my Backend, Zuul is not forwarding my cookie to…
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
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
4 answers

Spring Cloud Feign Client @RequestParam with List parameter creates a wrong request

I have a Spring Clound Feign Client mapping defined as following @RequestMapping(method = RequestMethod.GET, value = "/search/findByIdIn") Resources get(@RequestParam("ids") List ids); when I…
11
votes
7 answers

spring boot cloud eurka windows 10 eurkea returns host.docker.internal for client host name after latest docker upgrade

Spring Boot Cloud Disovery Question, Problem with Eureka hostname after docker upgrade on windows 10. (Note: docker is not hosting spring services, just mariadb, rabbitmq, and zipkin) Summary I am developing on windows 10 enterpise, latest…
11
votes
1 answer

Netflix Zuul server - /routes endpoint not available

In this coding exercise for learning microservices, I've created a Netflix Zuul project for service routing my microservices. Sadly, the /routes endpoint does not seem to be mounted. Everything else seems to be working fine: Defining prefixes and…
Lucas T
  • 3,011
  • 6
  • 29
  • 36
11
votes
4 answers

spring boot application failed to autowired feign client

I created a sample project of Spring Boot to understand the Feign client functionality, when run it gives below error. Field remoteCallClient in com.example.demo.RestClient required a bean of type 'com.example.demo.RemoteCallClient' that could not…
11
votes
1 answer

How to use Hystrix with Spring WebFlux WebClients?

I'm using Spring WebFlux with functional endpoints to create an API. To provide the results I want, I need to consume an external RESTful API, and to do that in a async way I'm using a WebClient implementation. It works well and goes like…
1
2
3
58 59