BAEL-20663: Replace depracated PageRequest constructor with a static method
This commit is contained in:
parent
6a2d89855e
commit
f373c922dd
@ -15,7 +15,7 @@ public class StudentServiceImpl implements StudentService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Page<Student> findPaginated(int page, int size) {
|
public Page<Student> findPaginated(int page, int size) {
|
||||||
return dao.findAll(new PageRequest(page, size));
|
return dao.findAll(PageRequest.of(page, size));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user