Java Elasticsearch生成Elasticsearch索引
发布时间
阅读量:
阅读量
1,创建一个新的Elasticsearch项目。
2,将Elasticsearch相关的依赖项引入项目中。
<dependencies>
<!--测试-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!--elasticsearch-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
</dependencies>
3,参数设置文件
spring:
全部评论 (0)
还没有任何评论哟~
