SpringbootJPA分页 PageRequest过时替换方法

Pageable pageable = new PageRequest(page - 1,size);
替换成:
Pageable pageable = PageRequest.of(page - 1,size);