Я только что обновил свой проект до Spring Boot 2 и теперь получаю эту ошибку с одним из моих JpaRepositories:
Caused by: org.springframework.data.mapping.PropertyReferenceException: No property findAll found for type UserOrder
Мой UserOrderRepository выглядит так:
@Repository
public interface UserOrderRepository extends JpaRepository<UserOrder, String> {
}
Абсолютно нет, где в моем коде я использую слово findAll
. Не как свойство, не как метод, поэтому совершенно потеряно из-за того, почему я получаю эту ошибку.
Этот проект пишет в Couchbase, используя артефакт Spring-data-couchbase платформы Spring.
запуск командной строки mvn зависимость: дерево | grep -i весна дает:
[INFO] | \- org.springframework.data:spring-data-couchbase:jar:3.0.6.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:5.0.5.RELEASE:compile
[INFO] | | \- org.springframework:spring-expression:jar:5.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-web:jar:5.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-tx:jar:5.0.5.RELEASE:compile
[INFO] | +- org.springframework.data:spring-data-commons:jar:2.0.6.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-properties-migrator:jar:2.0.1.RELEASE:runtime
[INFO] | +- org.springframework.boot:spring-boot:jar:2.0.1.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-configuration-metadata:jar:2.0.1.RELEASE:runtime
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.0.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.0.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.0.1.RELEASE:compile
[INFO] | +- org.springframework:spring-core:jar:5.0.5.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.0.5.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.0.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.0.1.RELEASE:compile
[INFO] | | +- org.springframework:spring-aop:jar:5.0.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.0.1.RELEASE:compile
[INFO] | | \- org.springframework:spring-jdbc:jar:5.0.5.RELEASE:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:2.0.6.RELEASE:compile
[INFO] | | +- org.springframework:spring-orm:jar:5.0.5.RELEASE:compile
[INFO] | | \- org.springframework:spring-beans:jar:5.0.5.RELEASE:compile
[INFO] | \- org.springframework:spring-aspects:jar:5.0.5.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.0.1.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.0.1.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.0.1.RELEASE:test
[INFO] | +- org.springframework:spring-test:jar:5.0.5.RELEASE:test