Ver Fonte

add missing annotation @Component

till há 4 anos atrás
pai
commit
20fce82112

+ 2 - 0
src/main/java/kafkademo/kafka/listener/SingleListener.java

@@ -1,7 +1,9 @@
 package kafkademo.kafka.listener;
 
 import org.springframework.kafka.annotation.KafkaListener;
+import org.springframework.stereotype.Component;
 
+@Component
 public class SingleListener {
 
     @KafkaListener(topics = "one-exchange", groupId = "group-id")