目录 一、添加依赖 二、从端口采集 三、从文件采集 四、从kafka中拉取 一、添加依赖 创建maven项目添加依赖包 <dependency><groupId>org.apache.kafka</groupId><artifactId>kaf……