springBoot JPA PageAble分页查询出错,PropertyReferenceException: No property creation found for type

PropertyReferenceException: No property creation found for type

 

@RequestParam(required = false, defaultValue = "1") Integer page,
@RequestParam(required = false, defaultValue = "10") Integer size,
@RequestParam(required = false, defaultValue = "DESC") String direction,
@RequestParam(required = false, defaultValue = "creationTime") String sort) {

请求参数属性默认值,和实体类相关时要和实体类名称一致(例如sort参数),不能有特殊字符 ,不然会出错 No property creation found for type

 

posted @ 2019-04-18 21:12  渔阳nice  阅读(1286)  评论(0编辑  收藏  举报