Skip to content

Commit

Permalink
Merge pull request #27 from abes-esr/FIX-error-to-sent-endoftraitment…
Browse files Browse the repository at this point in the history
…-message

FIX : erreur lors de l'envoi du message endoftraitment
  • Loading branch information
jvk88511334 authored Nov 2, 2023
2 parents 59c8e2b + 319d368 commit 5e79c43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/main/java/fr/abes/bestppn/configuration/KafkaConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ public Map<String, Object> producerConfigs() {
Map<String, Object> props = new HashMap<>();
props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapAddress);
props.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class);
props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, KafkaAvroSerializer.class);
props.put(KafkaAvroSerializerConfig.SCHEMA_REGISTRY_URL_CONFIG, registryUrl);
props.put(KafkaAvroSerializerConfig.AUTO_REGISTER_SCHEMAS, autoRegisterSchema);
props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, StringSerializer.class);
return props;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
spring.kafka.producer.bootstrap-servers=
spring.kafka.consumer.bootstrap-servers=
spring.kafka.registry.url=
spring.kafka.auto.register.schema=true
spring.kafka.auto.register.schema=false

url.onlineId2Ppn=
url.printId2Ppn=
Expand Down

0 comments on commit 5e79c43

Please sign in to comment.