1、jest
使用Maven依赖
1 | <dependency> |
测试
使用注解
1 |
|
1 | //添加数据 |
2、使用spring-boot-starter-data-elasticsearch实现
1 | <dependency> |
实现接口
1 | public interface BookRepository extends ElasticsearchRepository { |
1 |
|
- 本文作者: LHS
- 本文链接: https:/LiuHuAshen.github.io/2020/06/21/ElasticSearch在Springboot中的两种实现方式/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!