引用文件包含错误(org / springframework / beans / factory / xml / spring-tool-4.3.xsd)

问题描述 投票:0回答:1

当我验证applicationContext.xml文件时,我收到此错误:

Referenced file contains errors (project-aware://pm-master/org/springframework/beans/factory/xml/spring-tool-4.3.xsd).

这是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" xmlns:context="http://www.springframework.org/schema/context"
    xmlns:util="http://www.springframework.org/schema/util"
    xmlns:tx="http://www.springframework.org/schema/tx"
     xmlns:jpa="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/context http://www.springframework.org/schema/context/spring-context.xsd
           http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
           http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
           http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd">

<jpa:repositories  base-package="com.jedlab.pm.dao"  entity-manager-factory-ref="entityManagerFactory" transaction-manager-ref="transactionManager" />

</beans>

和spring数据jpa版本是1.11.0.RELEASE。

当我删除jpa:repositories行时,错误消失。我该如何解决?

spring maven spring-data spring-data-jpa spring-tool-suite
1个回答
-1
投票

如果您正在使用eclipse,那么从Windows-> Preferences - > Network Connections - > Cache清除缓存将会很有帮助。

© www.soinside.com 2019 - 2024. All rights reserved.