我目前正在尝试使用 GWT、Maven、Neo4j 和 Spring Data 建立一个测试项目。当我尝试在eclipse中以开发模式启动项目时遇到问题
我总是得到错误
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:配置问题:找不到 XML 模式命名空间的 Spring NamespaceHandler [ http://www.springframework.org/schema/data/neo4j]
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:neo4j="http://www.springframework.org/schema/data/neo4j"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/data/neo4j
http://www.springframework.org/schema/data/neo4j/spring-neo4j-2.0.xsd">
这是给出错误的 application-context.xml 的一部分。
在 pom.xml 我使用
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<version>2.1.0.BUILD-SNAPSHOT</version>
</dependency>
但我也遇到了 2.0.0.Release 版本的问题。
我在这里http://neo4j.org/nabble/#nabble-td3428668发现了同样的错误, 但没有提供答案或者是否有修复。
有人知道问题出在哪里吗?