WIP
authorKai Moritz <kai@juplo.de>
Sun, 5 May 2024 12:12:46 +0000 (14:12 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 5 May 2024 12:12:46 +0000 (14:12 +0200)
src/main/java/de/juplo/kafka/wordcount/recorder/RecorderApplication.java

index 36a11fe..11248d8 100644 (file)
@@ -7,7 +7,6 @@ import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.boot.context.properties.EnableConfigurationProperties;
 import org.springframework.context.annotation.Bean;
-import org.springframework.kafka.support.serializer.JsonSerializer;
 import org.springframework.util.Assert;
 
 import java.util.Properties;
@@ -25,7 +24,7 @@ public class RecorderApplication
                Properties props = new Properties();
                props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, properties.getBootstrapServer());
                props.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class);
-               props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, JsonSerializer.class);
+               props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, StringSerializer.class);
 
                return new KafkaProducer<>(props);
        }