无法在Spring Boot应用程序中实例化Pageable

时间:2017-11-13 11:30:51

标签: java spring spring-boot spring-data spring-data-jpa

我在类路径中有一个带有Spring Data JPA启动器的Spring Boot应用程序:

compile('org.springframework.boot:spring-boot-starter-data-jpa')

我预计org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration会在这种情况下自动加载,但我得到了:

org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.domain.Pageable]: Specified class is an interface

尝试从我的一个端点获得响应。

为什么Spring Boot自动配置在这种情况下不起作用?这是正常的行为吗?或许我错过了什么?

0 个答案:

没有答案
相关问题