我有很奇怪的問題。在我的存儲庫中,我需要擴展JpaSpecificationExecutor<T>
接口,以便能夠使用findAll(Specification<T>, Pageable)
進行自定義查詢分頁。SpringData擴展JpaSpecificationExecutor錯誤
但是,當我使用JpaSpecificationExecutor,
public interface DescriptionRepository extends ParentRepositoryCustom<Description, Long>,
JpaSpecificationExecutor<Description> {
}
應用程序不需額外的構建,拋出No property count found for type class Description
例外。我的Description
類沒有count屬性。當我從存儲庫中刪除JpaSpecificationExecutor
時,一切都很順利。