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
KafkaListener properties only accept string values. See javadoc SpEL expressions must resolve to a String, a @{link String[]} or a Collection<String>
Attempting to use a bean reference will result in an exception with the message. No converter found capable of converting from type [eu.europa.ec.test.kafka.FilterRecordPredicate] to type [java.lang.String]
Context
Currently we use either a consumer factory customizer (In case it applies to all consumers) or custom consumer factory beans (if it is consumer specific). Especially in the latter case we prefer to use the default spring boot consumer factory and annotations on the kafka listener.
Expected Behavior
Have a way to pass objects or bean references as values for
@KafkaListener
properties (KafkaConsumer properties).For example to use the bean reference
#{__listener.filterPredicate}
as a configuration property for a kafka-client ConsumerInterceptor. See alsoWiring Spring Beans into Producer/Consumer Interceptors
https://docs.spring.io/spring-kafka/reference/kafka/interceptors.html
Current Behavior
KafkaListener properties only accept string values. See javadoc
SpEL expressions must resolve to a String, a @{link String[]} or a Collection<String>
Attempting to use a bean reference will result in an exception with the message.
No converter found capable of converting from type [eu.europa.ec.test.kafka.FilterRecordPredicate] to type [java.lang.String]
Context
Currently we use either a consumer factory customizer (In case it applies to all consumers) or custom consumer factory beans (if it is consumer specific). Especially in the latter case we prefer to use the default spring boot consumer factory and annotations on the kafka listener.
The text was updated successfully, but these errors were encountered: