SDN4:最新快照测试失败
SDN4: Tests failing with latest snapshot
我在测试中遇到以下异常:
org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.neo4j.repository.support.GraphRepositoryFactoryBean]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.data.neo4j.repository.support.GraphRepositoryFactoryBean.<init>()
强制更新依赖项。
SDN版本:4.0.0.BUILD-SNAPSHOT
Neo4j 版本:2.2.5(与 2.2.4 出现相同的错误)
OGM:1.1.2-快照
...
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm</artifactId>
<version>1.1.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-kernel</artifactId>
<version>2.2.5</version>
</dependency>
<dependency>
<groupId>org.neo4j.app</groupId>
<artifactId>neo4j-server</artifactId>
<version>2.2.5</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<version>4.0.0.BUILD-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<version>4.0.0.BUILD-SNAPSHOT</version>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm</artifactId>
<version>1.1.2-SNAPSHOT</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j.test</groupId>
<artifactId>neo4j-harness</artifactId>
<version>2.2.5</version>
<scope>test</scope>
</dependency>
这只发生在测试中。
依赖项或配置是否有任何变化?
谢谢。
对于其他 运行 遇到此问题的人,请确保您的 @ComponentScan
不包括域和存储库包。
我在测试中遇到以下异常:
org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.neo4j.repository.support.GraphRepositoryFactoryBean]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.data.neo4j.repository.support.GraphRepositoryFactoryBean.<init>()
强制更新依赖项。
SDN版本:4.0.0.BUILD-SNAPSHOT
Neo4j 版本:2.2.5(与 2.2.4 出现相同的错误)
OGM:1.1.2-快照
...
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm</artifactId>
<version>1.1.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-kernel</artifactId>
<version>2.2.5</version>
</dependency>
<dependency>
<groupId>org.neo4j.app</groupId>
<artifactId>neo4j-server</artifactId>
<version>2.2.5</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<version>4.0.0.BUILD-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<version>4.0.0.BUILD-SNAPSHOT</version>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm</artifactId>
<version>1.1.2-SNAPSHOT</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j.test</groupId>
<artifactId>neo4j-harness</artifactId>
<version>2.2.5</version>
<scope>test</scope>
</dependency>
这只发生在测试中。
依赖项或配置是否有任何变化?
谢谢。
对于其他 运行 遇到此问题的人,请确保您的 @ComponentScan
不包括域和存储库包。