升级到Spring Data Neo4j 4.0.0时出现问题

时间:2015-10-08 14:03:14

标签: neo4j spring-data-neo4j spring-data-neo4j-4

我正在尝试将项目升级到Spring Data Neo4j 4.0.0,我遇到两个问题:

  1. MvnRepository缺少“spring-data-neo4j-rest”包(spring-data-neo4j-rest-4.0.0.jar返回404错误)。包是否仍然存在并且应该存在,或者我应该从我的pom.xml中删除依赖项?
  2. 我的所有DAO都出现以下错误:The method fetch(Set<...>) is undefined for the type Neo4jOperations。该方法用于初始化延迟加载的节点的集合。如何初始化节点的集合?
  3. 谢谢!

1 个答案:

答案 0 :(得分:2)

您是否阅读了为SDN 4提供的迁移指南?

http://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#migration

fetch已经消失,取而代之的是fetch-depth SDN-rest已经不再需要了(因为SDN-4完全是关于远程连接)。