当前位置: 代码迷 >> 综合 >> Sort(org.springframework.data.domain.Sort.Direction, java.util.List<java.lang.String>)‘ has private
  详细解决方案

Sort(org.springframework.data.domain.Sort.Direction, java.util.List<java.lang.String>)‘ has private

热度:93   发布时间:2023-11-24 20:47:54.0

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”)));
就可以了

  相关解决方案