Skip to content

Commit

Permalink
add trusted packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdhaekal committed May 25, 2024
1 parent 216395e commit eb61e32
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public ConsumerFactory<String, NotificationDTO> consumerFactory() {
props.put("sasl.jaas.config", saslJaasConfig);

props.put(ErrorHandlingDeserializer.VALUE_DESERIALIZER_CLASS, JsonDeserializer.class.getName());
props.put(JsonDeserializer.TRUSTED_PACKAGES, "id.ac.ui.cs.advprog.youkosonotification.dto");

props.put(JsonDeserializer.TRUSTED_PACKAGES, "id.ac.ui.cs.advprog.youkosonotification.dto,id.ac.ui.cs.advprog.youkosoproduct.dto");
return new DefaultKafkaConsumerFactory<>(
props,
new StringDeserializer(),
Expand Down

0 comments on commit eb61e32

Please sign in to comment.