I have a problem about sending any request to a defined service through api gateway with the usage of bearer token coming from login. After login, I tried to send a request to a defined service but I got this issue in JWTAuthenticationFilter of api gateway shown below. The exact location is in JWTUtils class …
Tag: spring-cloud
SqsListener doesn’t pick up any messages from SQS Queue
I’m trying to implement a queue through SQS for my project, sending to the queue works just fine, but receiving from the queue isn’t working at all. It seems the receiver has absolutely no connection to the queue at all Config Consumer Method Maven Dependencies I’ve gone through numerous Sta…
How to modify the port of https(http) URL?
Originally, I have a website with nginx and Ubuntu 20.04 port at 80(http) and 443(https), the URL is https://mysite.cc (It works well) And now, I want to set another site with Spring Cloud (Docker) with the URL https://new.mysite.cc How to set the nginx or the docker of Spring cloud? Right now, all of the two…
How to run consumer @StreamListener only after ApplicationReadyEvent method completed?
I have a consumer method with And I have a method with an event listener Is it possible to configure @StreamListener to start listening only after @EventListener method is completed? Answer According to Spring Cloud Stream docs you could use property spring.cloud.stream.bindings.<bindingName>.consumer.a…
An “Error creating bean with name ‘functionBindingRegistrar'” exception every time I start my application
I have a normal spring cloud stream application that simple reads data from Kafka topic and produces messages to another Kafka topic, please find below the configurations: And the following application.proeprties And below is the signature of all defined spring cloud functions Everything works fine, and the a…
spring boot boostrap bean override
In my spring.factories I have such a definition: In MyBootstrapConfiguration I have : Now in my test (junit-5 and @SpringBootTest), I would like to override this bean. Notice the @ConditionalOnMissingBean… If I can hook somehow to a “before” my bootstrap is started, to provide that ApiClient…
Error Creating Bean Error (Spring Cloud Config Client)
I am trying to learn Spring Cloud Config. So first I setup a Server, where I can fetch the properties using http://localhost:9090/config/default/master/app.static.properties on the browser. It has about 5 or 6 properties. I am trying to get just one for now. I wrote my classes like: and My bootstrap.propertie…
Spring kstreams cannot get processor to work – The class ‘[B’ is not in the trusted packages
Full code: https://github.com/BenedictWHD/kstreams-example So I have a producer (data-ingest), processor (external-message-processor), and consumer (internal-message-processor (This will become a processor later once I get things working, so apologies for the naming at the moment, but it is a consumer)). The …
Spring Cloud Configuration Server not working with local properties file – getting need to use a composite configuration
I am configuring the new spring config server and getting the below error. I have tried the below links but no luck Spring Cloud Config Server configuration with local repository spring config server- for local git repository https://medium.com/@danismaz.furkan/spring-cloud-config-with-file-system-backend-c18…
Spring cloud config match profile
I have a hierarchy structure of applications files in my git repository as follows: uri: https://bitbucket.org/repositorios-company/configuration-files Directory: -authorization-service —-…