package de.example.spring.kafka;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import javax.inject.Inject;
+
+import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.messaging.Source;
import org.springframework.messaging.support.MessageBuilder;
-import javax.inject.Inject;
-
+@EnableBinding(Source.class)
public class Sender {
- private static final Logger LOGGER = LoggerFactory.getLogger(Sender.class);
-
// Aquí podrías haber usado tu custom interface: InputOutputChannels :)
private final Source source;