Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Marc Rink
@Docjones
Hello - I am having trouble making logback.xml available via spring-cloud-config server. the provision itself is working, but i have springProperty-directives within the logback.xml and i fear that they cause problems. Anyone have the same issue or a working example?
learnerjava830
@learnerjava830
Can somone please kindly share me some real time deadlock use cases - real time example - not just like one resource held another and another tries to acquire the lock and causes deadlock.
Ramo Karahasan
@ramokarahasan_twitter

Hi, we have some issues with consumerconfiguration being overwrittten when restarting a consumer. It looks like the previous consumer group is joined, but being revoked and re-joined which is causing to load default values of the consumers. Spring kafka client 2.3.1 is in use. This is our consumer application.properites

iws.amazonspapi.client.redisCluster=redis://127.0.0.1:6379

spring.cloud.stream.kafka.binder.brokers=127.0.0.1:9092
spring.cloud.stream.kafka.binder.autoCreateTopics=true
spring.cloud.stream.default-binder=kafka

spring.cloud.stream.function.definition=connectorImporterFunction

spring.cloud.stream.bindings.connectorImporterFunction-in-0.destination=amazon-sp-api.import
spring.cloud.stream.bindings.connectorImporterFunction-in-0.group=${spring.application.name}

spring.cloud.stream.bindings.connectorImporterFunction-out-0.destination=amazon-sp-api.mapping
spring.cloud.stream.bindings.connectorImporterFunction-out-0.producer.partition-key-expression=headers['iws.connector.connection-id']

and this is the the log output when restarting the processors

2022-09-08 11:01:02.452  INFO 1 --- [           main] o.s.c.stream.binder.BinderErrorChannel   : Channel 'amazon-sp-api.import.iws-amazon-sp-api-importer-processor.errors' has 2 subscriber(s).
2022-09-08 11:01:02.466  INFO 1 --- [           main] o.a.k.clients.consumer.ConsumerConfig    : ConsumerConfig values: 
    allow.auto.create.topics = true
    auto.commit.interval.ms = 100
    auto.offset.reset = earliest
...
2022-09-08 11:01:02.472  INFO 1 --- [           main] o.a.k.clients.consumer.KafkaConsumer     : [Consumer clientId=consumer-2, groupId=iws-amazon-sp-api-importer-processor] Subscribed to topic(s): amazon-sp-api.import
2022-09-08 11:01:02.473  INFO 1 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService
2022-09-08 11:01:02.476  INFO 1 --- [           main] s.i.k.i.KafkaMessageDrivenChannelAdapter : started org.springframework.integration.kafka.inbound.KafkaMessageDrivenChannelAdapter@6f5ae4e1
2022-09-08 11:01:02.493  INFO 1 --- [container-0-C-1] org.apache.kafka.clients.Metadata        : [Consumer clientId=consumer-2, groupId=iws-amazon-sp-api-importer-processor] Cluster ID: lF5p-KeKShmogx0MAo9HKw
2022-09-08 11:01:02.494  INFO 1 --- [container-0-C-1] o.a.k.c.c.internals.AbstractCoordinator  : [Consumer clientId=consumer-2, groupId=iws-amazon-sp-api-importer-processor] Discovered group coordinator 10.0.106.76:9092 (id: 2147483645 rack: null)
2022-09-08 11:01:02.503  INFO 1 --- [container-0-C-1] o.a.k.c.c.internals.ConsumerCoordinator  : [Consumer clientId=consumer-2, groupId=iws-amazon-sp-api-importer-processor] Revoking previously assigned partitions []
2022-09-08 11:01:02.504  INFO 1 --- [container-0-C-1] o.s.c.s.b.k.KafkaMessageChannelBinder$1  : iws-amazon-sp-api-importer-processor: partitions revoked: []
2022-09-08 11:01:02.504  INFO 1 --- [container-0-C-1] o.a.k.c.c.internals.AbstractCoordinator  : [Consumer clientId=consumer-2, groupId=iws-amazon-sp-api-importer-processor] (Re-)joining group
2022-09-08 11:01:02.511  INFO 1 --- [container-0-C-1] o.a.k.c.c.internals.AbstractCoordinator  : [Consumer clientId=consumer-2, groupId=iws-amazon-sp-api-importer-processor] (Re-)joining group
2022-09-08 11:01:02.559  INFO 1 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2022-09-08 11:01:02.581  INFO 1 --- [           main] i.i.c.a.i.p.ImporterProcessorApplication : Started ImporterProcessorApplication in 9.751 seconds (JVM running for 10.35)
2022-09-08 11:01:04.099  INFO 1 --- [container-0-C-1] o.a.k.c.c.internals.AbstractCoordinator  : [Consumer clientId=consumer-2, groupId=iws-amazon-sp-api-importer-processor] Successfully joined group with generation 206
2022-09-08 11:01:04.104  INFO 1 --- [container-0-C-1] o.a.k.c.c.internals.ConsumerCoordinator  : [Consumer clientId=consumer-2, groupId=iws-amazon-sp-api-importer-processor] Setting newly assigned partitions: amazon-sp-api.import-0
2022-09-08 11:01:04.113  INFO 1 --- [container-0-C-1] o.a.k.c.c.internals.ConsumerCoordinator  : [Consumer clientId=consumer-2, groupId=iws-amazon-sp-api-importer-processor] Setting offset for partition amazon-sp-api.import-0 to the committed offset FetchPosition{offset=195794, offsetEpoch=Optional.empty, currentLeader=LeaderAndEpoch{leader=10.0.106.74:9092 (id: 0 rack: null), epoch=1}}
2022-09-08 11:01:04.122  INFO 1 --- [container-0-C-1] o.s.c.s.b.k.KafkaMessageChannelBinder$1  : iws-amazon-sp-api-importer-processor: partitions assigned: [amazon-sp-api.import-0]
2022-09-08 11:01:08.088  INFO 1 --- [binder-health-1] o.a.k.clients.consumer.ConsumerConfig    : ConsumerConfig values: 
    allow.auto.create.topics = true
    auto.commit.interval.ms = 5000
as you see above auto.offset.reset = earliest , is what we've configured, but for some reason the consumer partitions are revoked and the group is re-joining and after that defaults values auto.offset.reset = latest are loaded, probably because it's an anonymous group at this time
We don't understand why the previously assigned partitions are revoked and re-joind again
Jimisola Laursen
@lfvjimisola

I'm trying to understand the difference between https://cloud.spring.io/spring-cloud-vault/multi/multi_vault.config.backends.html#vault.config.backends

Generic Backend and Versioned Key-Value Backend

Does "Versioned Key-Value Backend" along you to specify what version you want of a key/value pair? E.g. key/valee pair's version 1 was "someKey: some text" and version 2 "second: some successor text" and we can specify if we want version 1 or version 2 of the key/value pair?

2 replies
Jimisola Laursen
@lfvjimisola

Accessing key/value from our HashiCorp Vault works but I'm contemplating whether there is more to it.

Also, our config looks like this:

spring.config.import: vault://secret/xxx/yyy/zzz/someapplication
spring.cloud.vault:
      fail-fast: true 
      authentication: APPROLE
      app-role:
        role-id: ${VAULT_ROLE_ID} 
        secret-id: ${VAULT_SECRET_ID}
      uri: https://vault.domain.com

How does that relate to official docs:

spring.cloud.vault:
    kv:
        enabled: true
        backend: secret
        profile-separator: '/'
        default-context: application
        application-name: my-app

Do we need this last part as well (i.e. sprint.cloud.vault.kv)?

Jimisola Laursen
@lfvjimisola
Is there a way to store a value (e.g. a GPG key) directly to a file using Spring Cloud Vault?
learnerjava830
@learnerjava830
what are the differences between Encache vs Spring Cache?
learnerjava830
@learnerjava830

Five Cases Of Encoding - Which One is Best Approach

I have a password which has plus value in the front and fails or missed out when it is sends as a request parameter. On reading/searching internet i observed we can solve the problem via the following

a. encode in front-end - (ex: https://stackoverflow.com/questions/53546691/preserving-plus-sign-in-urlencoded-http-post-request)
b. encode in back-end - (ex: extends ClientHttpRequestInterceptor and add functionality)
c. convert the password to base64url in front-end and pass and do the decode in the back-end
d. send the password in request body instead of request parameter
e. send the hash value instead of actual value as hash will not have any plus or special characters

Thanks

learnerjava830
@learnerjava830
What is the best open source tool/software for performance verfiying to identify performance bugs in Java?
Kasper Bisgaard
@bsgrd
Hi.
Is it possible to use spring-cloud-stream functional programming model with the "new" Streams plugin for RabbitMQ?
I have tried setting spring.cloud.stream.rabbit.bindings.myConsumer-in-0.consumer.containerType to stream, but im getting a NoClassDefFoundError for RabbitStreamOperations.
I'm using spring-cloud version 2021.0.4.
learnerjava830
@learnerjava830

Text Over Image with Java Web Application

https://www.baeldung.com/java-add-text-to-image
https://www.geeksforgeeks.org/java-program-to-add-text-to-an-image-in-opencv/

I want to display an image in the web application where user can add text on the image.

Finally i need to save in DB, later user has to view the editable text and edit if required

How to achieve this in java web application - UI? back-end? DB (json or image or co-ordinates) ?

Does any opensource can be used in all the levels? Can someone suggest some comments/feedback

Maxim Bartkov
@MaxBartkov
Hey! I decided to migrate from Java 8 to Java 17, сonsequently I migrated spring-boot-starter-parent from 2.2.2.RELEASE to 2.7.1 and org.springframework.cloud.spring-cloud-dependencies from Hoxton.RELEASE to 2021.0.3, and after that, ServiceInstance doesn't return metadata.
I use consul, and as I see, since 2021.03 I can't find ConsulDiscoveryClient
Before migration, ServiceInstance was returning metadata
learnerjava830
@learnerjava830

URL url = new URL(...); --> FAILS here when i try to download a https image - "javax.imageio.IIOException ... "Can't get input stream from URL!""

Note:
URL works from browser
URL works in standalone program
URL fails when used in java web application

Question:

  1. Is any special treatment required to access https image from web app?
  2. How does it works in standalone program but not via web app though the certs are not installed in local machine?

What is the correct/right approach and what is the underlying differences?

Thanks

Salman khandu
@salman-khandu
Can anyone help me to configure leasing strategy for httpclient ( Spring could gateway ) https://stackoverflow.com/questions/73809387/configure-connection-leasing-strategy-fifo-lifo-for-httpclient-spring-cloud-ga
Stephan R
@mrpubnight_gitlab

Wondering if

1) it's possible,
2) there is any documentation

on operating 2 different OAuth2 flows for authentication (depending on the route) at the same time on a single Spring Cloud Gateway (2.2.1.RELEASE)? Specifically trying to using Spring Cloud Gateway for authorization code flow (users hitting services behind the gateway) and resource server flow (service -> service calling back-end API).

I've tried setting up multiple ServerHttpSecurity Beans with different @Order annotations like we did with Zuul but the first one, understandably, took precedence. I'd prefer not to have to run 2 different Gateways if I can avoid it.

If there is a better channel to use I'm happy to post there. Was going to post to the spring-security-oauth channel but thought this is more about Gateway vs. Security.

Pradeep Kumar
@Pradeep17210238_twitter
Hi Folks
I am trying to read the request body in the spring cloud gateway but found that the request body can be consumed only once. Is there any way to read the request body before it flows to downstream service.
learnerjava830
@learnerjava830

How to have different application.properties file in Spring Application (Not Spring Boot) and call them based on the environment?

Currently replacing the same application.properties everytime. Local/Staging/Production

Please advise.

2 replies
Archimedes Trajano
@trajano

I am trying to use a custom key resolver in #spring-cloud-gateway. But I am getting the following error

Expression [#{@tokenKeyResolver}] @1: EL1043E: Unexpected token. Expected 'identifier' but was 'lcurly({)'
org.springframework.expression.spel.SpelParseException: Expression [#{@tokenKeyResolver}] @1: EL1043E: Unexpected token. Expected 'identifier' but was 'lcurly({)'

As documented in https://docs.spring.io/spring-cloud-gateway/docs/current/reference/html/#the-requestratelimiter-gatewayfilter-factory

Archimedes Trajano
@trajano
I got it to work with @tokenKeyResolver but not in the discovery client locator since it does not import the default context.
learnerjava830
@learnerjava830
I am having an existing Spring Application. How to convert it to a Spring boot application ? What are the changes needs to be done for the conversion?
Sercan Noyan Germiyanoğlu
@Rapter1990
Hi, I have some problems in my example Spring Batch Processing
1 ) Cannot convert localdatetime from yyyy-MM-dd HH:mm:ss to yyyy-MM-dd
2 ) The program automatically starts the implementation of batch process. I defined a controller to handle with it. The defined url implement it instead of letting Spring do it automatically. How can I do that.
Here is the link : https://github.com/Rapter1990/batchprocessingcsvtodatabase
capnrotbart
@capnrotbart

Hello, I built a gateway based on Cloud Gateway. One of its core features is its dynamic discovery of routes through another service. Until recently we refreshed its routes by restarting its pod. Now I want to have it update continually, so I modified my RouteLocator to produce a Flux that doesn't complete. Now the app never completes its launch. I think I tracked this back to this code section in org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter:

        else if (event instanceof RefreshRoutesEvent && routeLocator != null) {
            // forces initialization
            if (routeLocatorInitialized.compareAndSet(false, true)) {
                // on first time, block so that app fails to start if there are errors in
                // routes
                // see gh-1574
                routeLocator.ifAvailable(locator -> locator.getRoutes().blockLast()); /////////////// <- here I block
            }
            else {
                // this preserves previous behaviour on refresh, this could likely go away
                routeLocator.ifAvailable(locator -> locator.getRoutes().subscribe());
            }
        }

My code snippet:

    override fun getRoutes(): Flux<Route> {
        return routeSink.asFlux() // Complete signal only pushed on shutdown
    }

My question, any ideas how to get around this? How should a continually updating gateway be handled? Push a refresh event every so and so?
TIA

4 replies
Luca Trubbiani
@trubbio83

Hi guys..just trying to work with spring-cloud and gateway...I'm having a cors issue that I can't fix... I'm using angular to make a request and I'm having a problem.

the request is blocked due to CORS problem. In my application.properties I set those options... any advice?

spring.cloud.gateway.globalcors.add-to-simple-url-handler-mapping=true
spring.cloud.gateway.globalcors.corsConfigurations.[/**].allowedOrigins=*
spring.cloud.gateway.globalcors.corsConfigurations.[/**].allowedHeaders=*
spring.cloud.gateway.globalcors.corsConfigurations.[/**].allowedMethods=*

for the authentication and authorization i'm using keycloak and I'm able to receive a token...If I made the request with postman it work everything fine and I get the correct response from the server

my gateway spring-boot security configuration is the following...

@Configuration
@EnableWebFluxSecurity
public class SecurityConfig {

    @Bean
    public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity serverHttpSecurity) {
        serverHttpSecurity
                .authorizeExchange(exchange ->
                        exchange.pathMatchers("/eureka/**")
                                .permitAll()
                                .anyExchange()
                                .authenticated())
                .cors()
                .and()
                .csrf()
                .disable()
                .oauth2ResourceServer(ServerHttpSecurity.OAuth2ResourceServerSpec::jwt);
        return serverHttpSecurity.build();
    }
}
learnerjava830
@learnerjava830
What are the differences between the following 4 paths in application.properties file?
  1. application.path
  2. servlet.path
  3. server.servlet.context-path
  4. spring.mvc.servlet.path
lovertech2022
@lovertech2022

I'm a newbie and happy to get connect. I want to execute a spring bean method in a servlet file. I'm doing the below

ServletContext context = request.getSession().getServletContext();
AnnotationConfigWebApplicationContext appCtx = (AnnotationConfigWebApplicationContext) context.getAttribute("org.springframework.web.servlet.FrameworkServlet.CONTEXT.dispatcher");
ConfigurableListableBeanFactory beanFactory = ((ConfigurableApplicationContext) appCtx ).getBeanFactory();
configurableListableBeanFactory.getBean(beanName)

Can someone kindly share with the comments whether will there be any issue with the above approach?

Luca Trubbiani
@trubbio83

Hi guys..just trying to work with spring-cloud and gateway...I'm having a cors issue that I can't fix... I'm using angular to make a request and I'm having a problem.

the request is blocked due to CORS problem. In my application.properties I set those options... any advice?

spring.cloud.gateway.globalcors.add-to-simple-url-handler-mapping=true
spring.cloud.gateway.globalcors.corsConfigurations.[/**].allowedOrigins=*
spring.cloud.gateway.globalcors.corsConfigurations.[/**].allowedHeaders=*
spring.cloud.gateway.globalcors.corsConfigurations.[/**].allowedMethods=*

for the authentication and authorization i'm using keycloak and I'm able to receive a token...If I made the request with postman it work everything fine and I get the correct response from the server

my gateway spring-boot security configuration is the following...

@Configuration
@EnableWebFluxSecurity
public class SecurityConfig {

    @Bean
    public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity serverHttpSecurity) {
        serverHttpSecurity
                .authorizeExchange(exchange ->
                        exchange.pathMatchers("/eureka/**")
                                .permitAll()
                                .anyExchange()
                                .authenticated())
                .cors()
                .and()
                .csrf()
                .disable()
                .oauth2ResourceServer(ServerHttpSecurity.OAuth2ResourceServerSpec::jwt);
        return serverHttpSecurity.build();
    }
}

Is there anyone of you that can help me on this? I put also a request to stack overflow...but no luck! any help will be appreciated.

https://stackoverflow.com/questions/73905537/why-the-spring-cloud-with-the-gatway-ignore-the-cors-property-defined-in-applica

messagebeliever2022
@messagebeliever2022
Any good open source monitoring tool for spring boot app which runs with embedded tomcat ?
gitexp2050
@gitexp2050
What are the differences between OpenLiberty vs Quarkus vs Spring Boot??? How SpringBoot is going to differ from Quarkus and OpenLiberty
Bartłomiej Piech
@delor
hi, after recent upgrade we have noticed a lot of this kind of logs
2022-10-13 01:07:35.904  INFO http-nio-8080-exec-6 o.s.c.c.s.e.NativeEnvironmentRepository  : Adding property source: Config resource 'file [/tmp/config-repo-8699269293105409398/remote-charging.yml]' via location 'remote-charging.yml'
2022-10-13 01:07:35.904  INFO http-nio-8080-exec-6 o.s.c.c.s.e.NativeEnvironmentRepository  : Adding property source: Config resource 'file [/tmp/config-repo-8699269293105409398/application.yml]' via location 'file:/tmp/config-repo-8699269293105409398/'
2022-10-13 01:07:40.851  INFO http-nio-8080-exec-8 o.s.c.c.s.e.NativeEnvironmentRepository  : Adding property source: Config resource 'file [/tmp/config-repo-8699269293105409398/remote-charging.yml]' via location 'remote-charging.yml'
2022-10-13 01:07:40.851  INFO http-nio-8080-exec-8 o.s.c.c.s.e.NativeEnvironmentRepository  : Adding property source: Config resource 'file [/tmp/config-repo-8699269293105409398/application.yml]' via location 'file:/tmp/config-repo-8699269293105409398/'
2022-10-13 01:07:41.181  INFO http-nio-8080-exec-7 o.s.c.c.s.e.NativeEnvironmentRepository  : Adding property source: Config resource 'file [/tmp/config-repo-8699269293105409398/remote-charging.yml]' via location 'remote-charging.yml'
2022-10-13 01:07:41.182  INFO http-nio-8080-exec-7 o.s.c.c.s.e.NativeEnvironmentRepository  : Adding property source: Config resource 'file [/tmp/config-repo-8699269293105409398/application.yml]' via location 'file:/tmp/config-repo-8699269293105409398/'
2022-10-13 01:07:45.855  INFO http-nio-8080-exec-9 o.s.c.c.s.e.NativeEnvironmentRepository  : Adding property source: Config resource 'file [/tmp/config-repo-8699269293105409398/remote-charging.yml]' via location 'remote-charging.yml'
2022-10-13 01:07:45.856  INFO http-nio-8080-exec-9 o.s.c.c.s.e.NativeEnvironmentRepository  : Adding property source: Config resource 'file [/tmp/config-repo-8699269293105409398/application.yml]' via location 'file:/tmp/config-repo-8699269293105409398/'
2 replies
SabareeshGC
@SabareeshGC
Moving from Eureka to use Kubernetes native service discovery but having trouble understanding how can a local development service can access other micro-services in a kubernetes cluster, with Eureka it was pretty obvious
Fabian Wallwitz
@cforce
Trying to get a spring cloud-function on aws and spring boot 3.0.0-M5 function mvn package -Pnative working.
Did anyone already successfully has setup such project?
Fabian Wallwitz
@cforce
Getting
Exception in thread "main" java.lang.NoSuchMethodError: 'java.lang.Object org.springframework.boot.SpringApplication.withHook(org.springframework.boot.SpringApplicationHook, org.springframework.util.function.ThrowingSupplier)'
gitexp2050
@gitexp2050
How to process millions of records one by one...What is the quickest way ? Basically need to do search always the table which has millions of records...
gitexp2050
@gitexp2050

I have 100 queries to run in a single query and print the result as time taken

for example,
select from employee, select from employee_address, select * from sales

How to combine all the queries and print the time taken with a single query?

Not programming but in MySQL query, need the report/summary of execution time with one query

Thanks

Jimisola Laursen
@lfvjimisola
I'm trying to find a table that clarifies what version of Spring Boot that works with what version of Spring Cloud but I can't seem to find one. Release notes seem to mention it at times but it would be useful with a table.
We're currently using Spring Boot 2.7.x and Spring Cloud 2021.0.4, but have some issues with HashiCorp Vault. We confirmed that it worked with SB 3.0.0-Mx and latest milestone of Spring Cloud.
gitexp2050
@gitexp2050

I'm new beginner in java and have a assignment to do heap and thread dump analysis and find out the bug and exact root cause..basically a demo to be shown

Can someone guide me where i can get some samples of Thread and Heap Dump with issues, steps to find the actual issue or root cause in the dumps ?

Bug identification with thread dump and heap dump which has issues.

Sercan Noyan Germiyanoğlu
@Rapter1990

Hi, I have a problem about my api gateway. I tried to implement an example of Spring Boot Microservice. I have a problem in JWT part in api gateway.
When I make a requests of any service through the port number of api gateway, I got an error "An expected CSRF token cannot be found" which leads to 403 forbidden.

Here is the example : https://github.com/Rapter1990/microservicecoursedailybuffer

Sercan Noyan Germiyanoğlu
@Rapter1990
I have a problem about sending any request to the relevant service through api gateway.
I have an issue after adding auth service.
What I really want to do is to send any request to other service after authentication.
I think there can be problem in api gateway but I couldn't solve it?
Before starting to run all services, run zipkin and redis on docker.
Here are their commands as shown belowed.
docker run -d -p 9411:9411 openzipkin/zipkin
docker run -d --name redis -p 6379:6379 redis
Here is the error message shown below.
An expected CSRF token cannot be found (403 Forbidden)
How can I do that?
Here is the link of example : Link
Here is the screenshots : Link
Andreas Evers
@andreasevers

Hi friends,
We're trying to use Spring Cloud Task to execute batch jobs on Kubernetes. I'm wondering if we are using it the way it's intended to be used:

An API call with an S3 link to a CSV file comes into the Task Manager which uses
Spring Cloud Task which delegates to
Spring Cloud Deployer Kubernetes to spin up a pod per task/CSV file.

We were first using the TaskLauncher directly to spin up the pod per CSV, but then the manager was not following up the state of the job.
What we seemed to need, was what the DeployerPartitionHandler was doing, i.e. using a handler that delegates to the launcher, but also polls for replies.
This allows us to retry failed partitions.

While this was solving the resiliency question, it seems that the partitions are managed for Steps part of a single Job / Task. Is setting the gridSize on the DeployerPartitionHandler to 1 sufficient to support the scenario where we have 1 partition per CSV, but where we can spin up a pod per CSV?

Sercan Noyan Germiyanoğlu
@Rapter1990
I have a problem about sending any request to the relevant service without the usage of bearer token.
After I registered, user information is created in user table. When I login, bearer token and refresh token as well as other information information is shown in the postman.
I can send a request without the usage of bearer token.
What I really want to do is to send any request to other service after authentication.
I get this issue "An expected CSRF token cannot be found (403 Forbidden)" when I send a request through the port number of api gateway.
I think there can be problem in api gateway but I couldn't solve it?
How can I do that? I updated my repository : https://github.com/Rapter1990/microservicecoursedailybuffer
Rutger Lubbers
@RutgerLubbers

Hey, I have a (test) project with Spring Cloud Config Server and Client (4.0.0-M5).
If both server and client have a spring.jackson.property-naming-strategy set (say to kebab case) then property sources are not "loaded" by the client. The client does not deserialise the property-sources attribute.
The client seems to be using the default deserialiser settings of camel case. The server on the other hand "honours" the naming strategy.

Perhaps it would be good to have an explicit naming strategy, so the client and server can differ in their default JSON settings?
For instance, the org.springframework.cloud.config.environment.Environment could have an explicit @JsonProperty("propertySources") on the getPropertySources() method. This way the manner which the server and/or client is configured does not have impact on the retrieval of the configuration.

Sercan Noyan Germiyanoğlu
@Rapter1990

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.

Here is the link : https://stackoverflow.com/questions/74304377/spring-cloud-api-gateway-jwt-issue-java-lang-classnotfoundexception-javax-xml-b

Sercan Noyan Germiyanoğlu
@Rapter1990
I have a JWT issue problem about JUnit Controller Test in my spring boot microservice example. Here is the link : https://stackoverflow.com/questions/74378611/spring-boot-microservices-junit-controller-test-jwt-issue Can you help me?
gitexp2050
@gitexp2050
can anyone help me with a javascript clarification? please kindly ping me
gitexp2050
@gitexp2050
Which is the best place to store image and server front-end quickly or fastly? Need to display 100 images in front-end
  1. S3
  2. Firebase
  3. DB
  4. Application Server folder webapps/project
  5. Shared folder common to application servers
  6. Folder in the Application Server outside the project (c:\ or d: drives)
  7. How many API calls to be sent to the server ? Each Image Each API call?