关于SpringbootJPA分页 PageRequest过时的办法

http://www.cnblogs.com/igong/p/9817037.html

Pageable pageable = PageRequest.of(0, 10);
List<Map<String, String>> lineSearchList = searchStatisticsDao.lineSearchStatistics(pageable);
@Query("select CONCAT(s.originName, '-', s.destinationName) as name, count(s) as count from SearchStatistics s group by s.description")
List<Map<String, String>> lineSearchStatistics(Pageable pageable);
原文地址:https://www.cnblogs.com/yifanSJ/p/10131692.html