Fork me on GitHub
摘要: 部署信息 节点名称 节点IP 端口 master 127.0.0.1 3306 slave 127.0.0.1 3305 mycat 127.0.0.1 8066/9066 一、mariadb主从配置 1、mariadb安装 新建主节点配置文件(docker启动时会把此文件挂载到容器中) mkdir 阅读全文
posted @ 2021-03-30 10:24 ayueC 阅读(253) 评论(0) 推荐(0)
摘要: 查看所有消费群组 bin\windows\kafka-consumer-groups.bat --bootstrap-server localhost:9092 --list 查看消费群的消费信息 bin\windows\kafka-consumer-groups.bat --describe -- 阅读全文
posted @ 2021-03-30 10:22 ayueC 阅读(28) 评论(0) 推荐(0)
摘要: 通过spring-kafka完成kafka消费和生产 1、引入maven依赖 <dependency> <groupId>org.springframework.kafka</groupId> <artifactId>spring-kafka</artifactId> <version>2.2.0. 阅读全文
posted @ 2021-03-30 10:21 ayueC 阅读(433) 评论(0) 推荐(0)
摘要: 将数据库数据保存成excel文件,并支持页面下载 controller层代码 @GetMapping("/result/export") public void resultExport(InfoQuery infoQuery, HttpServletResponse response) { try 阅读全文
posted @ 2021-03-30 10:20 ayueC 阅读(149) 评论(0) 推荐(0)