Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • 17:25
    jizhuozhi synchronize #1111
  • 17:11
    jizhuozhi synchronize #1111
  • 15:32
    xhuy-le labeled #2098
  • 15:32
    xhuy-le opened #2098
  • 11:24
    Jamesmahaitao labeled #4097
  • 11:24
    Jamesmahaitao opened #4097
  • 10:58
    CircleCI success: spring-cloud build (#3485) in https://github.com/spring-cloud/spring-cloud-kubernetes
    • k8s native implementation + tests
      (afac6887946f78aa30a3f606a942398ed84ef091 by wind57)
  • 10:27
    CircleCI success: spring-cloud build (#3484) in https://github.com/spring-cloud/spring-cloud-kubernetes
    • k8s native implementation + tests
      (afac6887946f78aa30a3f606a942398ed84ef091 by wind57)
  • May 27 19:40
    norbertwnuk commented #2138
  • May 27 19:33
    norbertwnuk commented #2138
  • May 27 19:32
    spencergibb demilestoned #4064
  • May 27 18:55
    CircleCI failed: spring-cloud build (#3483) in https://github.com/spring-cloud/spring-cloud-kubernetes
    • fabric8 implementation + tests
      (05e31e3a08f13ae356705de4d84bbc00a958626c by wind57)
  • May 27 18:51

    spencergibb on main

    Bumping versions Bumping versions Bumping versions and 3 more (compare)

  • May 27 18:49

    spencergibb on jenkins-releaser-config

    Updates versions (compare)

  • May 27 18:48

    spencergibb on 2021.0.x

    Updates versions (compare)

  • May 27 18:47

    spencergibb on 2021.0.x

    Updates versions (compare)

  • May 27 18:44

    spencergibb on jenkins-releaser-config

    Updates 2021_0_4-snapshot.prope… (compare)

  • May 27 18:35
    CircleCI failed: spring-cloud build (#3482) in https://github.com/spring-cloud/spring-cloud-kubernetes
    • Bumps to next snapshot release
      (1a2888805fbd30763a9c52c1e3439996e473a612 by spencergibb)
  • May 27 18:15

    spencergibb on 3.1.x

    Update SNAPSHOT to 3.1.2 Updates to latest snapshot vers… (compare)

  • May 27 18:10

    spencergibb on 3.1.x

    Update SNAPSHOT to 3.1.3 Merge tag 'v3.1.3' into 3.1.x Bumps to next snapshot version (compare)

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?


Hello everyone, I need your help pls

Jar working on EC2 but not on Lambda
On Lambda :-
13:50:33.867 [main] ERROR org.springframework.cloud.stream.binding.BindingService - Failed to create consumer binding; retrying in 30 seconds
13:50:33.867 [main] ERROR org.springframework.cloud.stream.binding.BindingService - Failed to create producer binding; retrying in 30 seconds
Operation is a varaiable which the kafka message has but its going as NULL to lambda but same message going to EC2 instance corrrectly.

On EC2 :-
the jar is working perfectly.

Mode of deployment: CloudFormation
I have a doubt Is this issue because of maven-shaded plugin
Actual plugin :-

            -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=${debug.suspend},address=${debug.port}

I changed it to (for AWS LAMBDA Deployment)
Note:- Even after changing It was working on EC2


                    <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                    <transformer implementation="org.springframework.boot.maven.PropertiesMergingResourceTransformer">
                    <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                    <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
                    <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
1 reply
Eyal Ringort
Hi, I have an application working in an all reactive manner. Can I use Spring Cloud AWS to consume messages from SQS reactively/asynchronously? If so, how do I force the receiver/listener to be reactive/async?
Hi there,
Using Spring Cloud Gateway, I am trying to add a simple GatewayFilter which should add extra parameters to the request body and extra headers before forwarding the request. The request content type is application/x-www-form-urlencoded.
I have not yet familiarized myself with WebFlux and I was really surprised to see how difficult it is to achieve that simple requirement .
Looking at some example codes, it seems like accessing the request body and modify it required lot of ceremonies.
I would like to know if there are some utility classes which can help to achieve that simple task.
Thanks a lot and maybe it's time to me to learn project reactor.
5 replies

Hi there,
I am trying to work on a cache-control requirement and want my resources to be cached on the browser.
My parent application is a Zuul app and it uses spring security, i set the cache control on this app using resourceHandler in WebMvcConfigurer and this worked fine for all the resources. Also set ignore-security-headers to false on zuul.
Now this app loads another app(child app from another url) in an iframe (angular component), which in-turn uses spring security but its NOT a zuul app. Here also I used resourceHandler to configure cache control params and child app is intended to be accessible from parent app iframe only.
Now, unfortunately, cache control is not working properly for the resources of child app. I checked the response headers in chroma and found that now I get two cache control in response.
1) cache-control: no-cache
2) cache-control: (intended) I set in child app WebMvcConfigurer.

This works perfectly fine if I directly access my child app.
Not able to figure out how the no-cache got added in response headers. Whether its an iframe, parent zuul component or spring cloud added default caching.
I tried to disable the cache control for spring security from HTTPSecurity but still facing the same issue.

Looks like I am missing some basics here. I would like to know what I can check further.
Thanks a lot.

Guy Guidona
Hello all, I'm having some awkward but serious issues with my app these days
Okay, here's the issue. I have an app following the classic spring-cloud architecture with an oauth2 server, a main micro service and to that a service discovery server (eureka). The app was working fine.
But all of a sudden it started sending internal server errors with code 500 and nothing else. When I mean nothing I mean nothing in the logs. No other error. In the Kubernetes service logs, only the internal server error sent to the front can be seen in the network console of the browser.
Roc Chiu
Hello everyone, I need your help!
How can I use ‘Hints’ based Spring Cloud LoadBalancer in Spring Cloud Gateway project?
Roc Chiu
Why 'Spring Cloud LoadBalancer’ LoadBalancerClientConfiguration dose not build ‘HintBasedServiceInstanceListSupplier’ like 'zone-preference’, 'health-check' with property?
Team any reference for spring cloud gateway integration with spring security + JWT
1 reply
Ivan Vercinsky

Hi Everybody!

    public Function<Flux<Message<OfferIncomingEvent>>, Flux<Message<OfferOutgoingEvent>>> offerValidatorAutomatic() {
        return this::validateOfferAutomatic;

I have that Function which is procesing events from one kafka topic to another. My question is the following:

Is there a way to set up the binding between this two topics so that spring would forward the ALL the headers automatically?

Because if i remove the Message<?> type of the Flux parameter the headers from the input topic doesnt get forwarded.
Also, in the current setting i have to manually added them when building the outgoin message.

Thank you for your attention!

Hi there,
I have a spring cloud function deployed on AWS. It has a trigger of MSK (AWS). How can I add a destination of MSK or Kafka for the lambda function? Basically, I want to publish a Kafka msg as output.

Approaches to handle 10 million records of 10 tables each with several joins

I have 10 million records of 10 tables each with several joins. I am looking for the best alternative or DB assign or approach to read the records very quickly that is the query should be fast.

option#1 - normalize the tables, don't go for joins unnecessarily
option#2 - add all the columns in 1st query where multiple times the
where conditions will be used in the looping construct
option#3 - go for nosql database instead of mysql

Please advise



Hi, i've work with spring cloud gateway and experience same issue same as this thread (proxy server has response but spring cloud gateway not return it )
Could you give me sone suggestion about this ?


thanks you very much

Aleksey Vasin
Hi, how i can set maxIdleTime for webclient, when i use reactive-open-feign?
Addanki Nageshwar
Team I am facing issue while deploying Spring-cloud-config server
not able to load th properties from the directory
Appreciated much if any could help me in this
springcloud2021.0.0加入hystrix,报错,Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required这是什么原因导致的
Can we configure Poller for the specific supplier in Spring Cloud Stream?
I want different cron job for two supplier in same spring boot application.
Hi, I am currently working on testing my springboot application with external services. Is there a way to route http calls to proxy which could route to a mock server. does Zuul proxy work in this situation.
May I ask if there is a group about ZGC or JDK17, I didn't find it.
I found that the GC thread of ZGC has been occupying two CPUs or more, and 50% of the CPU in the flame graph is used by ZWorker thread in SpringCloud Gateway
Dumb question maybe but what does the yaml look like when you want to and/or/negate predicates?
Pulina Udapamunuwa

We're upgrading our apps from Spring Boot 2.3.4.RELEASE to 2.6.4 and have encountered an issue fetching our secrets from AWS Secrets Manager since bootstrap.yml and spring-cloud-starter-aws-secrets-manager-config seem to no longer be supported.

To solve this we used the dependency group: 'io.awspring.cloud', name: 'spring-cloud-starter-aws-secrets-manager-config', version: '2.3.3' and had a application-<env>.properties file with spring.config.import=aws-secretsmanager:/secret/<appname>_<env>

We wanted to know if this is the proper way of achieving this or if there's a better way to do it.

I am converting zuul to the cloud-gateway and zuul has a 'sensitiveHeaders' property. Is there something equivalent to override this in the gateway for a certain route? I need to route to some service that is in a different domain than the rest of our service and it looks like our authorization cookie is getting stripped.
Hi, does anyone know how I can stop Spring Cloud from wrapping my response in an APIGatewayProxyResponseEvent when running it as an AWS authorizer? I have APIGatewayProxyRequestEvent as input, but need a raw IamPolicyResponse as the output.

I think we need an alternative way to integrate with AWS Secrets Manager.

For example, let's suppose there are two databases in your cloud environment
that use AWS::SecretsManager::Secret for automatic secret creation.

These are created by two different teams that have different naming conventions:

# Team A
  Type: 'AWS::SecretsManager::Secret'
    Name: /database-one/credentials
    Description: "This secret has a dynamically generated secret password."
      SecretStringTemplate: '{"username": "test-user"}'
      GenerateStringKey: "password"
      PasswordLength: 30
      ExcludeCharacters: '"@/\'
# Team B
  Type: 'AWS::SecretsManager::Secret'
    Name: /team-b/secrets/databases/database-two/credentials
    Description: "This secret has a dynamically generated secret password."
      SecretStringTemplate: '{"username": "test-user"}'
      GenerateStringKey: "password"
      PasswordLength: 30
      ExcludeCharacters: '"@/\'

Ideally I want to be able to do something similar to this in my application.yaml files:

db-one-username: ${/database-one/credentials:username} 
db-one-password: ${/database-one/credentials:password}

db-two-username: ${/team-b/secrets/databases/database-two/credentials:username}
db-two-password: ${/team-b/secrets/databases/database-two/credentials:password}

Or more sensibly:

db-one-username: ${secrets-manager:/database-one/credentials:username} 
db-one-password: ${secrets-manager:/database-one/credentials:password}

db-two-username: ${secrets-manager:/team-b/secrets/databases/database-two/credentials:username}
db-two-password: ${secrets-manager:/team-b/secrets/databases/database-two/credentials:password}


db-one-username: ${database-one.credentials.username} 
db-one-password: ${database-one.credentials.password}

db-two-username: ${team-b.secrets.databases.database-two.credentials.username}
db-two-password: ${team-b.secrets.databases.database-two.credentials.password}


db-one-username: ${secrets-manager:/database-one.credentials.username}
db-one-password: ${secrets-manager:/database-one.credentials.password}

db-two-username: ${secrets-manager:/team-b.secrets.databases.database-two.credentials.username}
db-two-password: ${secrets-manager:/team-b.secrets.databases.database-two.credentials.password}

But if I am not mistaken, the two
current available approaches don't allow this pattern of usage.

For importing, I should do something like this:


And as these two secrets both have the same set of keys, there's no way to distinguish between the first database's
username/password keys and the second one's.

In the meantime I have implemented a custom solution, but it would be great if we could refer to AWS secrets as well
as property keys inside the secret using a custom resource protocol such as ${secrets-manager:...} or ${aws-secrets-manager:...}
or something similar.

Asif Kamran Malick
I am trying to leverage Spring cloud's feign client for calling Jira rest endpoint, but stuck into HTTP 415. Earlier I posted the detailed question on StackOverflow here : https://stackoverflow.com/questions/71470521/feign-exception-unsupportedmediatype-during-post-call-to-jira-rest-endpoint
Badly in need for some guidance.
Hi all. Im usingspring-cloud-starter-kubernetes-configwith spring boot 2.5.4. After deployment in k8s actutator sayskubernetes.inside = false`. What can i do wrong?
Ingo Griebsch
Hi all, we currently investigate about CVE-2022-22963 and realize that Spring-Cloud-Stream has a dependency to several Spring-Cloud-Function libraries. Therefore we would like to understand whether we are affected by the CVE if we use Spring-Cloud-Stream for our internal message communication. Can anybody maybe share more insights about this?