Sort(org.springframework.data.domain.Sort.Direction, java.util.List<java.lang.String>)‘ has private
将
Aggregation.sort(new Sort(new Sort.Order(Sort.Direction.DESC, “clickCount”),new Sort.Order(Sort.Direction.DESC, “stopTime”)));
改为
Aggregation.sort(Sort.by(new Sort.Order(Sort.Direction.DESC, “clickCount”),new Sort.Order(Sort.Direction.DESC, “stopTime”)));
就可以了