mongoDB使用spring jpa的一些关键字 MongoDB

mongoDB使用spring jpa的一些关键字

Spring Data MongoDB - Reference Documentation 官方文档 http://docs.spring.io/spring-data/data-document/docs/current/reference/html/#mongodb.repositories.queries Table 6.1. Supported keywords for query methods Keyword Sample Logical result GreaterThan findByAgeGreaterThan(int age) {"age" : {"$gt" : age}} LessThan findByAgeLessThan(int age) {"age" : {"$lt" : age}} Between findByAgeBetween(int from, int to) {"age" : {"$gt" : from, "$lt" : to}} IsNotNull, NotNull findByFirstnameNotNull() {"age" :···