mongoJPA的findTop使用

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

findTop10ByIdGreaterThanOrderByIdAsc(Long id);

top10:表示前10条,

orderByIdAsc: 表示按id正序

GreaterThan: 大于

posted @ 2021-11-05 14:14  发奋推墙  阅读(1057)  评论(0编辑  收藏  举报