摘要:
public class KafkaConsumerJob { public static void main(String[] args) throws Exception { StreamExecutionEnvironment env = StreamExecutionEnvironment. 阅读全文
摘要:
背景 kafka 服务端重建时,kafka客户端会连不上kafka服务端,此时需要重启客户端重连 ##代码实现 @Service public class KafkaConsumerService { private KafkaConsumer<String, String> consumer; @ 阅读全文