【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

相关推荐
plainGeekDev3 小时前
null 判断 → Kotlin 可空类型
android·java·kotlin
糖拌西瓜皮3 小时前
Java开发者视角:深入理解Node.js异步编程模型
java·后端·node.js
plainGeekDev3 小时前
getter/setter → Kotlin 属性
android·java·kotlin
一线大码4 小时前
Smart-Doc 的简单使用
java·后端·restful
MacroZheng5 小时前
Claude Code官方桌面端正式发布,夯爆了!
java·人工智能·后端
虚无境5 小时前
如何编写一个SpringBoot项目告警推送的Starter
java·prometheus·webhook
NE_STOP20 小时前
Vide Coding--AI编程工具的选择
java
码云数智-园园20 小时前
C++20 Modules 模块详解
java·开发语言·spring
程序员黑豆21 小时前
JDK 下载安装与配置详细教程
java·前端·ai编程