我正在尝试将项目升级到Spring Data Neo4j 4.0.0,我遇到两个问题:
The method fetch(Set<...>) is undefined for the type Neo4jOperations
。该方法用于初始化延迟加载的节点的集合。如何初始化节点的集合?谢谢!
答案 0 :(得分:2)
您是否阅读了为SDN 4提供的迁移指南?
http://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#migration
fetch已经消失,取而代之的是fetch-depth SDN-rest已经不再需要了(因为SDN-4完全是关于远程连接)。