解决没?SQL里面加
ORDER BY ?#{#pageable}就可以了@Query( value = "select * from paper_entry where owner is null or owner = ?1 ORDER BY ?#{#pageable}", countQuery = "select count(*) from paper_entry where owner is not null or owner = ?1 ORDER BY ?#{#pageable}", nativeQuery = true) Page findAll(Long userId, Pageable pageable);


