You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SpEL expression in the containerPostProcessor of @KafkaListener is not being evaluated correctly.
Details
I am using the @KafkaListener annotation with a containerPostProcessor, and I need to pass a Spring Expression Language (SpEL) expression like:
However, it seems that the SpEL expression is not being evaluated. The application fails to resolve the containerPostProcessor bean, and it does not process the expression.
I got this error: Consider defining a bean named '#{__batchListener.getContext().containerPostProcessor}' in your configuration
In KafkaListenerAnnotationBeanPostProcessor method 'processKafkaListenerAnnotation' all KafkaListener fileds are beeing resolved except containerPostProcessor
The text was updated successfully, but these errors were encountered:
…rocessor
Fixes: spring-projects#3544spring-projects#3544
- Enhance resolveContainerPostProcessor method in KafkaListenerAnnotationBeanPostProcessor
to evaluate SpEL expressions
- Verify containerPostProcessor property in KafkaListener annotation can be specified as a SpEL expression
Fixes: #3544#3544
- Enhance resolveContainerPostProcessor method in KafkaListenerAnnotationBeanPostProcessor
to evaluate SpEL expressions
- Verify containerPostProcessor property in KafkaListener annotation can be specified as a SpEL expression
(cherry picked from commit 3f45fc0)
Fixes: #3544#3544
- Enhance resolveContainerPostProcessor method in KafkaListenerAnnotationBeanPostProcessor
to evaluate SpEL expressions
- Verify containerPostProcessor property in KafkaListener annotation can be specified as a SpEL expression
(cherry picked from commit 3f45fc0)
# Conflicts:
# spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaListenerAnnotationBeanPostProcessor.java
Affects Version(s): 3.3.4
Describe the bug
The SpEL expression in the
containerPostProcessor
of@KafkaListener
is not being evaluated correctly.Details
I am using the
@KafkaListener
annotation with acontainerPostProcessor
, and I need to pass a Spring Expression Language (SpEL) expression like:However, it seems that the SpEL expression is not being evaluated. The application fails to resolve the containerPostProcessor bean, and it does not process the expression.
I got this error:
Consider defining a bean named '#{__batchListener.getContext().containerPostProcessor}' in your configuration
In
KafkaListenerAnnotationBeanPostProcessor
method 'processKafkaListenerAnnotation' allKafkaListener
fileds are beeing resolved exceptcontainerPostProcessor
The text was updated successfully, but these errors were encountered: