Jpa的 pageable 用法例子。
Sort sort = Sort.by(Sort.Direction.DESC, "alarmNo") .by(Sort.Direction.ASC, "reportTime"); // 设备报警信息取得 Pageable pageable = PageRequest.of(0, 100, sort); Page<DeviceAlarmHistoryQueryEntity> alarmPages = deviceAlarmHistoryQueryRepository.findAll(pageable);