Java 无法解析名称';存储库:存储库';到a(n)和"x27 ;;类型定义';成分

Java 无法解析名称';存储库:存储库';到a(n)和"x27 ;;类型定义';成分,java,spring,xsd,namespaces,spring-data-jpa,Java,Spring,Xsd,Namespaces,Spring Data Jpa,我在编写applicationContext.xml时遇到异常: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 18 in XML document from class path resource [META-INF/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException;

我在编写applicationContext.xml时遇到异常:

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 18 in XML document from class path resource [META-INF/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/data/jpa/spring-jpa.xsd; lineNumber: 18; columnNumber: 51; src-resolve: Cannot resolve the name 'repository:repositories' to a(n) 'type definition' component.
经过几次尝试,我最终发现问题在于repository:repositories位于spring-jpa.xsd中:

<xsd:extension base="repository:repositories">
<xsd:attributeGroup ref="repository:transactional-repository-attributes"/>
<xsd:attribute name="entity-manager-factory-ref" type="entityManagerFactoryRef"/>
<xsd:attribute name="enable-default-transactions" type="xsd:boolean">
<xsd:annotation><xsd:documentation>
                                Controls whether repositories get transactions enabled by default. 
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>

控制存储库是否在默认情况下启用事务。
粗略地看了一下,我认为这是对spring-repository.xsd的引用,所以我猜我的程序根本找不到到到spring-repository.xsd的方法

<xsd:complexType name="repositories">
<xsd:sequence>
...omitted..
</xsd:sequence>
</xsd:complexType>

…省略。。
我知道,当程序试图获取数据时,它会进入spring数据jpa.jar(我发现spring-jpa-1.8.xsd在org.springframework.data.jpa.repository.config包中),但我想知道这个repository.xsd在哪里?如何确保sping-jpa.xsd尝试引用repository.xsd时成功

提前谢谢