https://www.cnblogs.com/churujianghudezai/p/12750793.html
过时方法
Sort sort = new Sort(Sort.Direction.DESC,“blogs.size”);
Pageable pageable = new PageRequest(0, size, sort);
解决方案
Sort sort = Sort.by(Sort.Direction.DESC, “blogs.size”);
Pageable pageable= PageRequest.of(0, size, sort);