• 大小: 32KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-06-11
  • 语言: Java
  • 标签: Java  es  Elasticsearc  

资源简介

本实例为博主原创,属于简单易上手并且能够拿来就用的SpringBoot ES 项目,全文使用的是ElasticsearchTemplate进行开发。 本实例涵盖ES中的各类操作,如索引操作、CRUD操作、批处理、结果排序、分页查询、检索查询、关键字查询、高亮显示、逻辑查询、过滤查询、分组查询等等。并且已经过生产环境验证,各位可放心使用。如有不对之处欢迎在博客中留言交流。谢谢! 欢迎各位大神添加微信公众号:“愿为最亮星”,我们将在这一起探讨Java技术。

资源截图

代码片段和文件信息

package com.xinghua.elasticsearchservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


/**
 * @Description 启动类
 * @Author 姚广星
 * @Date 2020/2/24 16:57
 **/
@SpringBootApplication
@EnableSwagger2
public class ElasticsearchServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(ElasticsearchServiceApplication.class args);
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\
     文件        4563  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\README.md
     文件        3756  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\pom.xml
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\
     文件         531  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\ElasticsearchServiceApplication.java
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\common\
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\common\dto\
     文件         978  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\common\dto\ExceptionDTO.java
     文件         784  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\common\dto\SortDTO.java
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\common\model\
     文件         385  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\common\model\EntityEsModel.java
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\common\service\
     文件        3577  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\common\service\IbaseService.java
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\common\service\impl\
     文件        8238  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\common\service\impl\baseServiceImpl.java
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\common\utils\
     文件         801  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\common\utils\CommonException.java
     文件        1481  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\common\utils\ResultCode.java
     文件        7318  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\common\utils\StandardResult.java
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\constans\
     文件        2031  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\constans\Constants.java
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\controller\
     文件        6796  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\controller\ProductEsController.java
     文件        1497  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\controller\UserEsController.java
     目录           0  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\model\
     文件        2682  2020-03-03 09:32  SpringBoot-Elasticsearch-Demo-master\src\main\java\com\xinghua\elasticsearchservice\model\ProductEsModel.java
............此处省略19个文件信息

评论

共有 条评论