給網(wǎng)站整一個(gè)客服 怎么做鳳凰網(wǎng)全國(guó)疫情實(shí)時(shí)動(dòng)態(tài)
【Spring連載】使用Spring Data訪問(wèn) MongoDB(十四)----Mongodb特有的查詢方法
- 一、定義通用查詢方法
- 二、MongoDB特有的查詢方法
- 2.1 地理空間查詢Geo-spatial Queries
- 2.2 基于JSON的查詢方法和字段限制
- 2.3 使用SpEL表達(dá)式的基于JSON的查詢
- 2.4 全文檢索查詢
- 2.5 聚合方法Aggregation Methods
- 2.6 Query by Example
一、定義通用查詢方法
見(jiàn)定義查詢方法。
二、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