Spring 数据 neo4j 3.3.1 和 Neo4j 2.2.3 事务生成器错误
Spring data neo4j 3.3.1 and Neo4j 2.2.3 transaction builder error
我目前正在使用 Spring Data Neo4j 3.3.0 和 Play 2.3.8 使用 tuxburner plugin 并远程使用 neo4j 2.1.7 数据库。
我看到新的 spring 数据版本支持 neo4j 2.2,我想升级到它。
我将依赖项更改为新版本并收到以下错误:
BeanCreationException: Error creating bean with name 'restNeo4jConfig': Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.data.neo4j.config.Neo4jConfiguration.setGraphDatabaseService(org.neo4j.graphdb.GraphDatabaseService);
nested exception is java.lang.NoClassDefFoundError: org/neo4j/kernel/TransactionBuilder
这似乎是一个应该在 3.3.1 中解决的老问题,因为 neo4j 2.2 改变了很多内部 API 而这个 class 不再存在。
也许我使用Spring数据的方式不再正确,需要更改。
我创建了一个显示问题的示例播放应用程序:
https://github.com/OlympusTeam/Olympus
从 2.1 迁移时遇到同样的问题,似乎已在 3.3.2 中修复。
http://docs.spring.io/spring-data/neo4j/docs/current/changelog.txt
我目前正在使用 Spring Data Neo4j 3.3.0 和 Play 2.3.8 使用 tuxburner plugin 并远程使用 neo4j 2.1.7 数据库。
我看到新的 spring 数据版本支持 neo4j 2.2,我想升级到它。 我将依赖项更改为新版本并收到以下错误:
BeanCreationException: Error creating bean with name 'restNeo4jConfig': Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.data.neo4j.config.Neo4jConfiguration.setGraphDatabaseService(org.neo4j.graphdb.GraphDatabaseService);
nested exception is java.lang.NoClassDefFoundError: org/neo4j/kernel/TransactionBuilder
这似乎是一个应该在 3.3.1 中解决的老问题,因为 neo4j 2.2 改变了很多内部 API 而这个 class 不再存在。
也许我使用Spring数据的方式不再正确,需要更改。
我创建了一个显示问题的示例播放应用程序: https://github.com/OlympusTeam/Olympus
从 2.1 迁移时遇到同样的问题,似乎已在 3.3.2 中修复。
http://docs.spring.io/spring-data/neo4j/docs/current/changelog.txt