小编Jos*_*ill的帖子

Spring JPA/Hibernate:无法导入bean定义

在我的配置设置中出现问题或者可能是依赖冲突或缺少依赖性,我的头撞墙几个小时无法解决这个问题.有什么想法吗?

相关依赖:

Spring Data Commons Core 1.2.0
Spring Data JPA 1.8.0
Hibernate Core 5.0
Hibernate JPA 2.1
Run Code Online (Sandbox Code Playgroud)

Eclipse中的错误消息:

Configuration problem: Failed to import bean definitions from relative location [SpringDbContext.xml] Offending resource: class path resource [SpringAppContext.xml]; nested exception is 
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 43 in XML document from class path resource [SpringDbContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: 
http://www.springframework.org/schema/data/jpa/spring-jpa-1.8.xsd; lineNumber: 43; columnNumber: 63; src-resolve: Cannot resolve the name 'repository:auditing-attributes' to a(n) 'attribute group' component.at 
org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
Run Code Online (Sandbox Code Playgroud)

SpringAppContext.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" …
Run Code Online (Sandbox Code Playgroud)

java xml spring hibernate jpa

10
推荐指数
1
解决办法
1027
查看次数

标签 统计

hibernate ×1

java ×1

jpa ×1

spring ×1

xml ×1