-1

您好,当我尝试在我的 neo4j spring 数据项目上运行主要测试时,我遇到了这个错误

从类路径资源 [neo4j.xml] 解析 XML 文档时出现意外异常;嵌套异常是 org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class [org.springframework.data.neo4j.config.Neo4jNamespaceHandler] for namespace [http://www.springframework.org/schema/data/neo4j]: 处理程序问题类文件或依赖类;嵌套异常是 java.lang.NoClassDefFoundError: org/springframework/data/repository/config/RepositoryConfigurationExtension

谢谢你的帮助,我真的很感激

4

1 回答 1

1

Spring Data Neo4j 尚不支持 Neo4j 2.0。我建议你现在使用 1.9 或放弃 SDN。你也最好使用 Spring 3。这是我目前正在使用的组合:

  • org.neo4j:neo4j:jar:1.9(也将此版本用于 neo4j-server)
  • org.springframework.data:spring-data-neo4j:jar:2.2.1.RELEASE
  • org.springframework.data:spring-data-commons:jar:1.5.1.RELEASE
  • org.springframework:spring-core:jar:3.2.1.RELEASE
于 2013-06-10T11:51:48.130 回答