摘要: public class KafkaConsumerJob { public static void main(String[] args) throws Exception { StreamExecutionEnvironment env = StreamExecutionEnvironment. 阅读全文
posted @ 2023-04-23 10:45 xiaoyu_jane 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 背景 kafka 服务端重建时,kafka客户端会连不上kafka服务端,此时需要重启客户端重连 ##代码实现 @Service public class KafkaConsumerService { private KafkaConsumer<String, String> consumer; @ 阅读全文
posted @ 2023-04-23 10:25 xiaoyu_jane 阅读(836) 评论(0) 推荐(0) 编辑