gpt4 book ai didi

xml - 无法将名称 'repository:repository' 解析为 (n) 'type definition' 组件。

转载 作者:数据小太阳 更新时间:2023-10-29 01:43:36 33 4
gpt4 key购买 nike

我在尝试集成 Spring Data 时遇到此错误。完整的堆栈跟踪是

nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/data/jpa/spring-jpa.xsd; lineNumber: 18; columnNumber: 48; src-resolve: Cannot resolve the name 'repository:repository' to a(n) 'type definition' component.
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)

XML文件是

<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.springframework.org/schema/data/jpa"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/data/jpa
http://www.springframework.org/schema/data/jpa/spring-jpa.xsd">
<repositories base-package="com.interviewedonline.poc.repositories" />

最佳答案

我对 XSD 文件有同样的问题。

我已经将我的 Spring 数据 Data Commons 1.4 更改为 Spring Data Commons 1.3.2,现在一切正常......

关于xml - 无法将名称 'repository:repository' 解析为 (n) 'type definition' 组件。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12550685/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com