Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • 10:35
    spring-cloud-issues labeled #2159
  • 10:35
    spring-cloud-issues commented #2159
  • 09:35
    sergioasantiago closed #2095
  • 09:35
    sergioasantiago commented #2095
  • 08:10
    CircleCI failed: spring-cloud build (#3453) in https://github.com/spring-cloud/spring-cloud-kubernetes
    • fabric8 implementation
      (f4ae701a20b15c7fb16f242b03012628565e6a32 by wind57)
  • 07:44
    sergioasantiago opened #2095
  • 07:44
    sergioasantiago labeled #2095
  • 06:49
    zackfei edited #2094
  • 06:44
    zackfei labeled #2094
  • 06:44
    zackfei opened #2094
  • 06:26
    CircleCI failed: spring-cloud build (#3452) in https://github.com/spring-cloud/spring-cloud-kubernetes
    • add delayed prefix support
      (dfcf400f6f97f5562fb2b298be5c35c2f4a7bd2e by wind57)
  • 03:39
    spring-cloud-issues labeled #783
  • 03:35
    eddumelendez opened #783
  • 01:39
    spring-cloud-issues labeled #1115
  • 01:38
    Max-Qiu opened #1115
  • May 24 23:56
    ryanjbaxter commented #2044
  • May 24 22:14

    jonatan-ivanov on 3.1.x

    Increase timeout for zipkin sen… (compare)

  • May 24 14:41
    marcingrzejszczak unlabeled #2124
  • May 24 14:41
    marcingrzejszczak labeled #2124
  • May 24 12:33
    marcingrzejszczak milestoned #2075
Ingo Griebsch
Me again! It looks like the issue is already known! The corresponding tickets are spring-cloud/spring-cloud-stream-binder-rabbit#328 and spring-projects/spring-integration#3601 (in case someone stumbles about this messages or has the same problem). :)

Hi , read about issue where a large number of tcp connections are made from clients to gateway. spring-cloud/spring-cloud-gateway#1985 . This was fixed in reactor netty.

However i had a doubt about usage of property 'spring.cloud.gateway.httpclient.pool.max-idle-time' . Does this property achieve the same functionality of removing idle connections.

Cesar Manuel Cruzata De la Cruz
Hello, I need to know the version spring-cloud-gateway was to add support to Token Refresh

Registering error with row details + line number + error message

I'm processing a csv file using spring batch. I want to registering error with row details + line number + error message on all the steps wherever the error has been occured. The error may occur in reading stage or file input stage or processing stage or writing stage.

How to do this? Best practice to do this?


Henrique Luis Schmidt
Hi, I created the following StackOverflow question: https://stackoverflow.com/questions/68787306/spring-cloud-openfeign-how-can-i-create-a-test-slice I would appreciate if someone could take a look at it
Hi,is there any plan to support Service Mesh in Spring Cloud ?
For example, use Consul Mesh

Hello, everybody! I am currently refactoring my spring cloud application using spring cloud kubernetes together with kubernetes.
I am trying to externalize the properties in application.yml file with configMap and secret with embeded application.yaml file. I wonder if there is a way for Splitting one application.yml file into embeded application.yaml file in configMap and embeded application.yaml file in secret. something like:

      profiles: development
      message: Say Hello to the Developers
     url: xxxd
     username: xxxd
     password: xxxd
     driver-class-name: xxxd
      profiles: production
      message: Say Hello to the Ops
     url: xxxp
     username: xxxp
     password: xxxp
     driver-class-name: xxxp


kind: ConfigMap
apiVersion: v1
  name: myconfig
  application.yml: |-
      profiles: development
      message: Say Hello to the Developers
      profiles: production
      message: Say Hello to the Ops


apiVersion: v1
kind: Secret
  name: mysecret
type: Opaque
  application.yml: |-
      profiles: development
     url: xxxd
     username: xxxd
     password: xxxd
     driver-class-name: xxxd
      profiles: production
     url: xxxp
     username: xxxp
     password: xxxp
     driver-class-name: xxxp

spring cloud kubernetes config:

    name: cloud-k8s-app
        namespace: default-namespace
         - name: mysecret
        namespace: default-namespace
         - name: myconfig

can spring cloud kubernetes automatically combine two parts of applicaton.yml (in configmap and secret respectively)?

Does anyone know how to use ServerWebExchange to get Request Body content, when use spring cloud gateway to handle Post Request
Ingo Griebsch
Hello, I'm searching for the javadoc of the current Spring-Cloud-Stream release. Unfortunately, the links on the project website are broken. Therefore I would like to ask if they are available somewhere else? :)

Can someone help me with a good link to do the following using Spring Integration Outbound Adapter?

#1 - Write an API, when user hits the API where csv is input for the API - process via spring

 integration and send it FTP server (OR)

#2 - Write an API, when user hits the API - fetch the new daily records from DB - write it to

 a csv file and send it to the FTP server via Spring Integration Outbound Adapter


Hi, Could we override logging.config property loaded from spring config server when we provide it as a system property. Does system property have precedence over spring config server properties

Spring Application Is A Micro-Service? A confusion

One of my friend creates separate spring boot application for each functions or modules and run as a separate application and calling it as micro-service

I told him is that the microservice? There is a confusion how to treat a application or a service as micro-service

When i searched internet, i observed authentication would be in a separate service...All microservice will run independently

Can some experts give a good back around of micro-service or characteristics of micro-service to clarify the confusions


1 reply
Hello Team, How can i get the post body of a route in a pre filter ? currently routes are configured in application yml
Hi can you help with the above query
Hi guys, I need your help. I have problems with running Spring Cloud Gateway: https://stackoverflow.com/questions/69313037/spring-cloud-gateway-guide-from-pivotal-not-working-well
Just needed to use Spring Cloud 2020.0.3 Instead of Spring Cloud 2020.0.4
Roman S.A.
Hello evryone! I try use spring cloud config server and vault. I wrote my question here: https://stackoverflow.com/questions/69347177/spring-cloud-config-resolve-secret-propertiers-via-vault-and-git. Any help, plz
Željko Tomić


I have issue with custom health indicators / health contributors in application.
I'm using Spring Boot 2.5.5, Spring Cloud 2020.0.4 and Netflix Eureka for service registry/discovery.

If my HealthIndicator returns status DOWN/OUT_OF_SERVICE, then also 'eureka' health check in 'discoveryComposite' is DOWN/OUT_OF_SERVICE and service instance is not visible to other services, but if I implement it as CompositeHealthContributor and it also has status DOWN/OUT_OF_SERVICE, 'eureka' health has status 'UP' and service is visible to other services.

Is this expected behaviour?

1 reply
Hi, i am running an issue after upgrade to springboot version 2.4.5 and spring cloud 2020.0.3. I am not able to register service to eureka. In eureka it is showing status as UNKNOWN(1). can anyone help me here
Greg Adams
per https://docs.spring.io/spring-cloud-netflix/docs/3.0.4/reference/html/#using-eureka-on-aws, I’m customizing EurekaInstanceConfigBean using eureka-client's AmazonInfo, but I’m getting an error, and I think it’s due to spring-cloud-netflix excluding archaius
2 replies
Marcin Grzejszczak
Please do not cross post. I've seen your question on stackoverflow and commented on it
1 reply

Hi, how come my tests fail when I use org.springframework.cloud:spring-cloud-starter-kubernetes-client and org.springframework.cloud:spring-cloud-starter-consul-discovery despite me having spring.cloud.{kubernetes,consul}.enabled=false?
If it's just consul discovery and spring.cloud.consul.enabled=false it works.

The error:

AccountServiceTest > lock_whenUserRequestLock_userShouldBeMarkedAsLocked() FAILED
    java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
        Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:800
            Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException at DefaultListableBeanFactory.java:1790
ah, it works if I only disable discovery with spring.cloud.kubernetes.discovery.enabled=false
Josh Fix
i’m a bit confused as to which modules/strategy to use for spring cloud stream + sqs. It seems stream now uses functions, which is awesome. However, it seems there are new/different aws dependencies: io.awspring.cloud:spring-cloud-starter-aws-messaging and de.idealo.spring:spring-cloud-stream-binder-sqs, but these don’t seem to have documentation supporting the spring cloud function capabilities. do these packages all work in harmony?
How come when I use ${spring.cloud.client.hostname} it's the ip address of the network interface and not the local hostname?
Pietro Galassi
Hi all, is it possible to inject ThreadContextKeys into OpenFeign logs ?
Ved Singh

Greetings All,
I'm in the process of migrating to SpringBoot 2.5.6 and also to spring-cloud-starter-loadbalancer. I'm not using the Eureka service registry in my system but instead configuring a list of servers in our external configuration.




implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation 'org.springframework.cloud:spring-cloud-starter-loadbalancer'


listOfServers: https://product.service.mycompany.com


RoundRobinLoadBalancer : No servers available for service: productservice
FeignBlockingLoadBalancerClient : Load balancer does not contain an instance for the service productservice

What I understand from the logs is that the problem here is with the creation of a client-side load balancer which is needed for the FeignClient to work.

Can someone here help me with the config that will be needed in the case where you are not using the Eureka service registry?

Ved Singh
Hi Team
Any spring devs available for support

Hi Team,

I am facing issue with springencoder in the new version of open feing. It used work fine with earlier versions of spring cloud.
When I debuuged the code, I found this additional code has been added in the new version of SpringEncoder

if (Objects.equals(requestContentType, MediaType.MULTIPART_FORM_DATA)) {
this.springFormEncoder.encode(requestBody, bodyType, request);
Earlier my code was using AllEncompassingFormHttpMessageConverter(SpringCloud 2.2.1) when i submitted multivalue map(MULTIFORM_DATA) but now it breaks with new version.

Nickolas Heckman

I'm working on implementing some new stream processors (PubSub binder) and using spring-boot 2.5.6, with spring-cloud 2020.0.4.
We collect traces with zipkin and I'm noticing that the applications I have built with these latest versions are not getting b3 message attributes attached, so the traceId isn't propagated through like it does with our previously created applications based on spring-boot 2.3.6 and spring-cloud Horsham.SR10.
My "guess" is that I'm missing a dependency that is necessary to get this all wired together that wasn't needed two releases ago? I have the following explicit spring dependencies:

  implementation 'org.springframework.boot:spring-boot-starter-actuator'
  implementation 'org.springframework.boot:spring-boot-starter-data-redis-reactive'
  implementation 'org.springframework.cloud:spring-cloud-sleuth-zipkin'
  implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
  implementation 'org.springframework.cloud:spring-cloud-stream'
  implementation 'com.google.cloud:spring-cloud-gcp-pubsub-stream-binder'

I'm sure it's documented somewhere, but I'm not finding it. Could I get a pointer in the right direction?

3 replies
Pietro Galassi
Hi all, does Feign always calls same endpoint on failed calls (retry) even if there are multiple pods (openshift) ?
Misagh Moayyed

Hello room! In Cloud Config 3.1 RC1, has anything changed that would affect property-source loading, bootstrap context and the like? I am seeing a scenario where bootstrap environment and context is initialized from property sources, but actual application context/environment is not post-processed. It's as if the event listener that does the post processing of the environment never kicks into action for the application context/environment.

I see the two Environemnts created, and the Bootstrap environment is post-processed via the appropriat listener, but it seems like it gets in the way of the actual (servlet) application context. Beans are then created using the Bootstrap context property sources and none of the property sources that are profile-based are not actually read at the right time. They are read later, once after the context has initialized and beans are created, which is too late.

I am running this with Spring Boot 2.6 RC1 and Spring Cloud 3.1 RC1.

Marc Guilera
hello, we found that spring cloud is now trying to load a bunch of configmaps that it didn't before. the change is spring-cloud/spring-cloud-kubernetes#583 (cc @wind57)
it is debatible if this should be the default behaviour but in any case i'd like to disable it in my project. supposedly it should be as easy as to disableincludeProfileSpecificSources but i wasn't able to properly disable it. here's my bootstrap: https://gist.github.com/marcguilera/b73e2b0d9b5367ac1da7c0e10a7e2f4b
Pedro Silva
Hello. I'm trying to add etag header to some of the responses that go through spring cloud gateway. I get it that this is not a spring cloud feature (that we do have in spring mvc ShallowEtagHeaderFilter). But it isn't because you don't think it is the right to place to add the header, or it just doesn't exist and it can be implemented as a filter in the gateway? Thanks
Nikita Guchakov
Hi! What is the right way to implement custom remote property source that supports refresh scope? I tried to check kubernetes and consul implementation, but I didn't get something. I have Bootstrap Configuration with property source locator and the config poller that checks for the remote updates at Autoconfiguration. After any update, it triggers refresh(). However, how can I share new config properties with Properties Source Locator? The behavior is PropertySourceLocator recreates on context refresh. I tried to share some data holder as separate bean, but it seems to be created in bootstrap and main contexts as two separate beans. Kuberenetes client itself goes for the properties twice. Once on polling to check for update and then on property source locator locate() after refresh call.
Petr Vlček

Hi, everyone. I'd like to ask for an advice regarding Spring Cloud Consul service discovery and Kubernetes. We are running containers with Spring Boot in AWS EKS. We have an issue with correctly unregistering the instance from Consul when a pod with running container is being deleted. Once the application receives SIGTERM it is given 30 seconds period to shut down gracefully. My observation from logs is that the application tries to unregister from Consul right after receiving the signal, but is unable to make a new connection to Consul even when it still has plenty of time to shut down.

2021-11-30 21:28:51.374  WARN [printer,,,] 1 --- [extShutdownHook] .s.c.a.CommonAnnotationBeanPostProcessor : Destroy method on bean with name 'consulAutoServiceRegistration' threw an exception: com.ecwid.consul.transport.TransportException: org.apache.http.NoHttpResponseException: consul-server.consul.svc.cluster.local:8500 failed to respond

Did you run into similar issue before? I would welcome any advice.

3 replies

Hello everyone, I'm facing an issue with HTTP source app in a spring cloud data flow stream.

org.springframework.core.io.buffer.DataBufferLimitException: Exceeded limit on max bytes to buffer : 262144
    at org.springframework.core.io.buffer.LimitedDataBufferList.raiseLimitException(LimitedDataBufferList.java:98) ~[spring-core-5.3.10.jar:5.3.10]
    Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
Error has been observed at the following site(s):
    |_ checkpoint ? org.springframework.security.web.server.authorization.AuthorizationWebFilter [DefaultWebFilterChain]
    |_ checkpoint ? org.springframework.security.web.server.authorization.ExceptionTranslationWebFilter [DefaultWebFilterChain]
    |_ checkpoint ? org.springframework.security.web.server.authentication.logout.LogoutWebFilter [DefaultWebFilterChain]
    |_ checkpoint ? org.springframework.security.web.server.savedrequest.ServerRequestCacheWebFilter [DefaultWebFilterChain]
    |_ checkpoint ? org.springframework.security.web.server.context.SecurityContextServerWebExchangeWebFilter [DefaultWebFilterChain]
    |_ checkpoint ? org.springframework.security.web.server.context.ReactorContextWebFilter [DefaultWebFilterChain]
    |_ checkpoint ? org.springframework.security.web.server.header.HttpHeaderWriterWebFilter [DefaultWebFilterChain]
    |_ checkpoint ? org.springframework.security.config.web.server.ServerHttpSecurity$ServerWebExchangeReactorContextWebFilter [DefaultWebFilterChain]
    |_ checkpoint ? org.springframework.security.web.server.WebFilterChainProxy [DefaultWebFilterChain]
    |_ checkpoint ? org.springframework.cloud.sleuth.instrument.web.TraceWebFilter [DefaultWebFilterChain]
    |_ checkpoint ? org.springframework.boot.actuate.metrics.web.reactive.server.MetricsWebFilter [DefaultWebFilterChain]
    |_ checkpoint ? HTTP POST "/" [ExceptionHandlingWebHandler]

This happens when I try to post a HTTP request with huge body size to the HTTP end point.

I have tried setting following property in the deployment which didn't help me:

app.http.spring.codec.max-in-memory-size: 10MB

spring cloud starter http kafka source app version used is 3.1.1

Do anyone have a clue about how to fix this?

Jim Judd
Hey folks, I'm trying to get spring-cloud-config-server to connect to a private bitbucket repo using ssl. I've tried a bunch of stuff but I keep getting the same error: JSchException: failed to send channel request. I'm using an RSA cert, I've tried different java versions, and generated the keys in different OSs, and ran the service from Intellij and a docker ubuntu container. I'm at a loss, what have I missed?
Nuno Marujo
Hi. Can you please clarify what is the spring-cloud-dependencies compatibility for SB2.6.x? The compatibility table on https://spring.io/projects/spring-cloud still doesn’t refer SB2.6.x:
Marcin Grzejszczak
please check the website again

I'm wondering how to expand values in Spring Cloud Config server with vault:

For example, if I add this configuration:

env_name: "test-sandbox3"

  host: "{vault}:applications/{env_name}#redis_host"

it will throw Cannot resolve key: redis.host (class java.lang.IllegalArgumentException: Not enough variable values available to expand 'env_name')

Is it possible to force the config server to evaluate the vault path first ?

hi everyone, im trying to fix the cloud config server the last 10 hours without success
          uri: ssh://cloud-user@
          ignore-local-ssh-settings: true
          clone-on-start: true
          private-key: | (it is correct)
and I am getting
Caused by: com.jcraft.jsch.JSchException: failed to send channel request
    at com.jcraft.jsch.Request.write(Request.java:65) ~[jsch-0.1.55.jar:na]
    at com.jcraft.jsch.RequestEnv.request(RequestEnv.java:52) ~[jsch-0.1.55.jar:na]
    at com.jcraft.jsch.ChannelSession.sendRequests(ChannelSession.java:222) ~[jsch-0.1.55.jar:na]
    at com.jcraft.jsch.ChannelExec.start(ChannelExec.java:41) ~[jsch-0.1.55.jar:na]
    at com.jcraft.jsch.Channel.connect(Channel.java:152) ~[jsch-0.1.55.jar:na]
    at org.eclipse.jgit.transport.JschSession$JschProcess.<init>(JschSession.java:159) ~[org.eclipse.jgit.ssh.jsch-]
Alexey Anufriev


in cloud-gateway I have a couple of routes defined, but would like to configure rate limited individually for different paths within one route

for example I have

  - id: user
    uri: http://localhost:8100/user
      - Path=/user/**
  - id: management
    uri: http://localhost:8110/management
      - Path=/management/**

but I want to configure different rate limits for /management/users and /management/permissions

the problem I have is that I need to duplicate uri for each of the paths.

is it possible to override only filter for a child sub-path but keep the rest of the config as is?