Advertisement

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)

还没有任何评论哟~