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
java.lang.IllegalStateException: a KafkaTemplate is required to support replies
at org.springframework.util.Assert.state(Assert.java:73) ~[spring-core-5.0.0.RELEASE.jar:5.0.0.RELEASE]
at org.springframework.kafka.config.MethodKafkaListenerEndpoint.createMessageListener(MethodKafkaListenerEndpoint.java:136) ~[spring-kafka-2.0.0.RELEASE.jar:2.0.0.RELEASE]
See AbstractKafkaListenerContainerFactory.setReplyTemplate().
The text was updated successfully, but these errors were encountered:
snicoll
changed the title
Kafka Autoconfiguration - inject KafkaTemplate into container factory
Kafka auto-configuration does not support @SendTo
Oct 18, 2017
@SamD2.1.7.RELEASE is a bit vague (there's no such Spring Boot version so I can only assume that's a Spring Kafka version. Support was added in Spring Boot as of Spring Boot 2.0.0.M6 (see the milestone information on the right).
If you have more questions, please ask on StackOverflow or come chat with us on Gitter.
In order to support
@SendTo
(replies) in Kafka, theKafkaTemplate
(if present) should be injected into the listener container factory...See
AbstractKafkaListenerContainerFactory.setReplyTemplate()
.The text was updated successfully, but these errors were encountered: