Referenced file contains errors (http://www.springframework.org/schema/context). For more information, right click on the message in the Problems

spring 配置文件的DTD或schema出问题,一般两种情况:

1.当前网络环境不稳定,按住ctrl+"http://www.springframework.org/schema/context/spring-context.xsd",无法看到配置的链接地址。此时可以这样解决

http://www.springframework.org/schema/context  classpath:/org.springframework/context/config/spring-context-4.X.xsd,让其加载本地资源。

2.再者网络条件一般但不稳定,你可先在<?xml version="1.0" encoding="UTF-8"?>下加上这段ddt,

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"

"http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

此时可能错误消失,若没消失重复剪切几回,直到去掉加的这段ddt,xml不出错。

时间: 2024-08-29 19:33:14

Referenced file contains errors (http://www.springframework.org/schema/context). For more information, right click on the message in the Problems的相关文章

Referenced file contains errors (http://mybatis.org/dtd/mybatis-3-config.dtd). For more information, right click on the message in the Problems View and select &quot;Show Details...&quot;

mybatis配置文件报错Referenced file contains errors mybatis的配置文件报错 The errors below were detected when validating the file "mybatis-3-config.dtd" via the file "mybatis-config.xml".  In most cases these errors can be detected by validating &qu

Referenced file contains errors (http://www.springframework.org/schema...错误

Referenced file contains errors (http://www.springframework.org/schema...错误 Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). 关于这个错误,导致的原因可能是 一种可能是 之前用的Spring版本,和现在用的不同 对于Eclipse编译器来说,会有个缓存,这样验证的时候他会告

Referenced file contains errors (http://www.springframework.org/schema...错误--转载

Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). 关于这个错误,导致的原因可能是 一种可能是 之前用的Spring版本,和现在用的不同 对于Eclipse编译器来说,会有个缓存,这样验证的时候他会告诉你版本不统一 Preferences -> General -> Network Connections -> Cache 删除里面的缓存 还

Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd)

问题: java项目在Eclipse中xml有小红叉 Problems:Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). 解决: Eclipse 中选中项目点击 Progect -->clean 清理一下,删除缓存 原文地址:https://www.cnblogs.com/mophy/p/8279742.html

Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.1.xsd)

解决方法: 将 Preferences > XML > XML Files > Validation中"Honour all XML schema locations"前的对号去掉.它将禁用指向不同schema位置相同命名空间引用的验证,仅以第一次找到的可验证的XML文件为结果.

Referenced file contains errors (http://www.springframework.org/...解决

今天打开老项目出现如下错误: Referenced file contains errors (http://www.springframework.org/schema/context/spring-context-4.2.xsd). For more information, right click on the message in the Problems View and select "Show Details..."  解决: 然后右键项目,选择Validate,即可解决

Referenced file contains errors For more information, right click on the message in the Problems View and select &quot;Show Details...&quot;

Referenced file contains errors (http://www.springframework.org/schema/context/spring-context-3.1.xsd). For more information, right click on the message in the Problems View and select "Show Details..." 解决办法1: 在<?xml version="1.0" e

Spring 配置异常解决办法之Referenced file contains errors

Spring 配置异常解决办法之Referenced file contains errors (http://www.sp Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). For more information, right click on the message in the Problems View and select "Show

Referenced file contains errors 错误解决方法

Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). 关于这个错误,导致的原因可能是 一种可能是 之前用的Spring版本,和现在用的不同 对于Eclipse编译器来说,会有个缓存,这样验证的时候他会告诉你版本不统一 Preferences -> General -> Network Connections -> Cache 删除里面的缓存 还