From ab3ecdec03391c4b4ad8af9f1878918a857ce320 Mon Sep 17 00:00:00 2001 From: Dennis Effing Date: Fri, 10 Nov 2023 16:54:03 +0100 Subject: [PATCH] chore(track): add type mappings for kafka events --- services/track/src/main/resources/application.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/track/src/main/resources/application.yml b/services/track/src/main/resources/application.yml index 7712cafb..deadc113 100644 --- a/services/track/src/main/resources/application.yml +++ b/services/track/src/main/resources/application.yml @@ -33,6 +33,9 @@ spring: "security.protocol": SASL_PLAINTEXT "sasl.mechanism": PLAIN "sasl.jaas.config": 'org.apache.kafka.common.security.plain.PlainLoginModule required username="${KAFKA_USER:track}" password="${KAFKA_PASSWORD:track}";' + producer: + properties: + "spring.json.type.mapping": "date-tracked:de.codecentric.habitcentric.track.habit.HabitTracking$DateTracked,date-untracked:de.codecentric.habitcentric.track.habit.HabitTracking$DateUntracked" server: port: 9002