Hi,
I am newbie in spring + mongodb,
I want to know how to use with Pageable pageable,
I did function like this :
and I call it with :
but if I call with
there are the same results ...
So how to use it ? Can it support pagination ?
Tnx.
I am newbie in spring + mongodb,
I want to know how to use with Pageable pageable,
I did function like this :
Code:
public Page<Domain> findByIp(String ip, Pageable pageable);
Code:
List<Domain> page = repository.findByProjectId("1", new PageRequest(0, 100));
Code:
List<Domain> page = repository.findByProjectId("1", new PageRequest(1, 100));
So how to use it ? Can it support pagination ?
Tnx.