📜  mongorepository spring boot 自定义查询 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:17.132000             🧑  作者: Mango

代码示例1
public interface PersonRepository extends MongoRepository
// Geo-spatial repository queries
  // { 'location' : { '$near' : [point.x, point.y], '$maxDistance' : distance}}
  List findByLocationNear(Point location, Distance distance);
}