关于SpringbootJPA分页 PageRequest过时、报错
项目场景:
1.关于SpringbootJPA分页 PageRequest原来的Pageable pageable =new PageRequest(page-1,size);替换成:Pageable pageable = PageRequest.of(page-1,size);
2
问题描述:
org.springframework.dao.InvalidDataAccessApiUsageException: Type specified for TypedQuery [java.lang.Long
原创
2020-11-27 15:59:31 ·
2111 阅读 ·
1 评论