近期用了个新版本的 spring-boot:
所以 kafka 也上到了 2.6.6 ,于是乎遇到了题目上的问题,全网大部分的解决方案见下链接:
https://www.it610.com/article/1294134785026891776.htm
https://stackoverflow.com/questions/37363119/kafka-producer-org-apache-kafka-common-serialization-stringserializer-could-no/50981469#50981469
这个:
https://stackoverflow.com/questions/43331225/springxd-error-when-deploying-stream-stringdeserializer-class-could-not-be-foun
解决方式比较特殊:“I resolved my problem as follows: After having replaced the kafka-clients
PLUS having added provided
scope to the kafka-clients
dependency in my pom file, my consumer is working properly (so far)”
没有实践成功