Spring Kafka The class is not in the trusted packages

后端 未结 6 1170
北荒
北荒 2020-12-31 03:20

In my Spring Boot/Kafka application before the library update, I used the following class org.telegram.telegrambots.api.objects.Update in order to post messages

6条回答
  •  悲&欢浪女
    2020-12-31 03:46

    I have also faced this issue, however solutions above did not work for me. What did the trick, though, was configuring kafka consumer factory as follows:

    props.put(JsonDeserializer.TRUSTED_PACKAGES, "your.package.name");
    

提交回复
热议问题