特牛生活网

springboot+websocket实时读取kafka日志_springboot+websocket+kafka-CSDN博客

网友收藏
文章浏览阅读2.6k次,点赞3次,收藏3次。背景最近在做大数据平台项目,需要将相关处理过程的日志实时展现给前端,目前想到的方案就是通过websocket的方式,日志收集端生产日志到kafka,我这边服务端实时消费,然后推送给前端html 实时展现。实现步骤服务端配置类kafka配置@Component@Configuration@Validatedpublic class KafkaConfig { public static String kafkaBootStrapServers;// @Value("${s_springboot+websocket+kafka

上一篇:404!

下一篇:字朕名君-CSDN博客