【Spring连载】使用Spring Data访问 MongoDB(十四)----Mongodb特有的查询方法

【Spring连载】使用Spring Data访问 MongoDB(十四)----Mongodb特有的查询方法

  • 一、定义通用查询方法
  • 二、MongoDB特有的查询方法
    • [2.1 地理空间查询Geo-spatial Queries](#2.1 地理空间查询Geo-spatial Queries)
    • [2.2 基于JSON的查询方法和字段限制](#2.2 基于JSON的查询方法和字段限制)
    • [2.3 使用SpEL表达式的基于JSON的查询](#2.3 使用SpEL表达式的基于JSON的查询)
    • [2.4 全文检索查询](#2.4 全文检索查询)
    • [2.5 聚合方法Aggregation Methods](#2.5 聚合方法Aggregation Methods)
    • [2.6 Query by Example](#2.6 Query by Example)

一、定义通用查询方法

定义查询方法

二、MongoDB特有的查询方法

Most of the data access operations you usually trigger on a repository result in a query being executed against the MongoDB databases. Defining such a query is a matter of declaring a method on the repository interface, as the following example shows:

PersonRepository with query methods

2.1 地理空间查询Geo-spatial Queries

2.2 基于JSON的查询方法和字段限制

2.3 使用SpEL表达式的基于JSON的查询

2.4 全文检索查询

2.5 聚合方法Aggregation Methods

2.6 Query by Example

相关推荐
sxhcwgcy13 分钟前
快速在本地运行SpringBoot项目的流程介绍
java·spring boot·后端
vpk11214 分钟前
使用 Docker Compose 快速安装 MongoDB
mongodb·docker·容器
xiaomo224917 分钟前
javaee-多线程进阶
java·开发语言
我真会写代码18 分钟前
线程池高频面试题(整理版)
java·线程池
左左右右左右摇晃31 分钟前
Java并发——线程间的通信
java·开发语言
用户2986985301434 分钟前
Java: 从 Word 文档中提取文本和图像
java·后端
皙然40 分钟前
吃透进程与线程:从概念到实战,破解并发编程核心难题
java·开发语言
冬夜戏雪41 分钟前
HashMAP底层原理和扰动hash的例子
java·开发语言
咸鱼2.041 分钟前
【java入门到放弃】计算机网络
java·开发语言·计算机网络
Zzxy44 分钟前
MyBatis-Plus入门
java·mybatis