版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/heihu_malice7/article/details/84951583
import org.springframework.data.domain.Sort;
Query query = new Query();
query.with(
new Sort(new Sort.Order(Sort.Direction.DESC,"modifiedtime"))
);