life is too short for a diary



Posts Tagged: spring

Kafka Consumers with Reactive OAuth2 in Non-HTTP Contexts

When integrating Kafka consumers with reactive OAuth2 for securing outbound HTTP calls, a common pitfall arises: Kafka processing typically operates in a background, non-HTTP context. This means there's no `ServerWebExchange` available, which is a core component of the reactive web stack that exposes the current HTTP request/response and request-scoped attributes...

Continue reading → kafka spring reactive oauth2



Handling Multiple Beans of the Same Type in Spring with Qualifier

In Spring application, it's common to have multiple beans of the same type. However, this can lead to issues when Spring tries to autowire these beans, as it doesn't know which bean to inject. This problem can be resolved using Qualifier annotation...

Continue reading → spring boot spring