mongoJPA的findTop使用

要查询id大于3的最小的10条数据:

findTop10ByIdGreaterThanOrderByIdAsc(Long id);

top10:表示前10条,

orderByIdAsc: 表示按id正序

GreaterThan: 大于

原文地址:https://www.cnblogs.com/yayin/p/15513048.html