通过编辑personelService.java并删除personelRepository上的findData函数来解决。我使用springframework.data.jpa.repository.JpaRepository
findAll()函数,它可以工作。
public List<PersonelEntity> filteredData (Specification<PersonelEntity> spec, Pageable pageable){ Page<PersonelEntity> pageData = personelRepository.findAll(spec,pageable); List<PersonelEntity> filteredData = pageData.getContent(); return filteredData;}


