SpringbootJPA分頁 PageRequest過時替換方法

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