springBoot JPA PageAble分页查询出错,PropertyReferenceException: No property creation found for type
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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) {
分页属性默认值不能有下划线,和实体类相关时要和实体类名称一致 ,不然会出错 No property creation found for type
以上是关于springBoot JPA PageAble分页查询出错,PropertyReferenceException: No property creation found for type的主要内容,如果未能解决你的问题,请参考以下文章
如何使用带有 Pageable 的 Spring Data JPA 分页来更改数据?
Spring Boot2.0 JPA 实现分页(简单查询分页、复杂查询分页)