错误原因:
org.springframework.data.domain.Sort
Sort sort=new Sort(Sort.Direction.DESC,"CREATED_ON");//此处使用了数据库的字段名
public Sort(Sort.Direction direction, String... properties) {//property对应的是table orm后的Java对象的字段名
this(direction, (List)(properties == null?new ArrayList():Arrays.asList(properties)));
}
Sort sort=new Sort(Sort.Direction.DESC,"createdOn");//table表字段对应的java对象字段名