0%
Java 获取 Kafka 指定 topic 的消息总量
ElasticSearch 集成 Spring 之 ElasticsearchTemplate 示例
ElasticsearchTemplate
ElasticsearchTemplate 是 Spring 对 ElasticSearch 的 Java api 进行的封装,提供了大量的相关的类来完成各种各样的查询。
引入依赖
Springboot 项目:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
普通项目:
<!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-elasticsearch -->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId>
<version>3.2.1.RELEASE</version>
</dependency>
RAID 管理工具 MegaCli 的安装使用
Excel 文件导出工具 ExcelKit
Shell 中 kill 掉指定名称的进程
在 Linux 开发中我们时常会遇到对于之前进程 kill 掉,然后再运行当前进程或程序的情况,此时我们是不知道需要 kill 的进程号的,那么就需要通过一个 shell 命令组合来实现这个需求。