首页 > 编程语言 > 详细

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

时间:2015-04-24 12:16:33      阅读:291      评论:0      收藏:0      [点我收藏+]

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不出错。

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

原文:http://www.cnblogs.com/sumingk/p/4452960.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!