Spring boot ReactiveCouchbaseSortingRepository不允许在查找查询中使用Pageable参数

Spring boot ReactiveCouchbaseSortingRepository不允许在查找查询中使用Pageable参数,spring-boot,spring-data,reactive-programming,project-reactor,Spring Boot,Spring Data,Reactive Programming,Project Reactor,couchbase Responsive couchbase SortingSpring中couchbase Responsive的数据存储库不允许在find查询中使用Pageable参数 我的pojo名为MyEntity,如下所示。 当我在不使用Pageable的情况下运行下面的第二个find查询时,它会正确返回响应,但当我使用Pageable参数运行时,它会在初始化应用程序时抛出下面的异常 Caused by: java.lang.IllegalStateException: Method

couchbase Responsive couchbase SortingSpring中couchbase Responsive的数据存储库不允许在
find
查询中使用
Pageable
参数

我的pojo名为
MyEntity
,如下所示。 当我在不使用
Pageable
的情况下运行下面的第二个find查询时,它会正确返回响应,但当我使用
Pageable
参数运行时,它会在初始化应用程序时抛出下面的异常

Caused by: java.lang.IllegalStateException: Method has to have one of the following return types! [interface org.springframework.data.domain.Page, interface java.util.List, interface org.springframework.data.domain.Slice]
尽管它应该像参考文档和MongoDb一样工作

public class MyEntity {
    @Id
    private String id;
    private Instant effectiveDateTime;
    private String createdBy;
    private Instant createdDateTime;
}

public interface EntityRepository extends ReactiveCouchbaseSortingRepository<MyEntity, String> {

Flux<MyEntity> findByEffectiveDateTimeBetween(Instant start, Instant end, Pageable pageable) ;
Flux<MyEntity> findByEffectiveDateTimeBetween(Instant start, Instant end) ;
}





Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EntityRepository': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Method has to have one of the following return types! [interface org.springframework.data.domain.Page, interface java.util.List, interface org.springframework.data.domain.Slice]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1745) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]

caused by: java.lang.IllegalStateException: Method has to have one of the following return types! [interface org.springframework.data.domain.Page, interface java.util.List, interface org.springframework.data.domain.Slice]
    at org.springframework.data.repository.query.QueryMethod.assertReturnTypeAssignable(QueryMethod.java:301) ~[spring-data-commons-2.1.4.RELEASE.jar:2.1.4.RELEASE]
    at org.springframework.data.repository.query.QueryMethod.<init>(QueryMethod.java:86) ~[spring-data-commons-2.1.4.RELEASE.jar:2.1.4.RELEASE]
    at org.springframework.data.couchbase.repository.query.CouchbaseQueryMethod.<init>(CouchbaseQueryMethod.java:47) ~[spring-data-couchbase-3.1.4.RELEASE.jar:3.1.4.RELEASE]
    at org.springframework.data.couchbase.repository.support.ReactiveCouchbaseRepositoryFactory$CouchbaseQueryLookupStrategy.resolveQuery(ReactiveCouchbaseRepositoryFactory.java:222) ~[spring-data-couchbase-3.1.4.RELEASE.jar:3.1.4.RELEASE]
ALLOWED_PAGEABLE_TYPES.add(Slice.class);
ALLOWED_PAGEABLE_TYPES.add(Page.class);
ALLOWED_PAGEABLE_TYPES.add(List.class);