首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

Spring启动错误: cvc-elt.1: Cannot find the declaration of element 'beans'

2012-06-30 
Spring启动异常: cvc-elt.1: Cannot find the declaration of element beans出现此问题 是spring的jar包

Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'

出现此问题 是spring的jar包与applicationContext.xml中xsd的 版本不同 造成的。

版本不同在联网的情况下不会出现此异常,但当网络断开或者使用内部网络时就会出现此异常。

只需要把applicationContext.xml中的xsd的版本改为与jar包一样的版本即可。

?

现百度上流行这样一种解决方法,不过这样做我并不能解决问题:

修改Spring applicationContext.xml文件XML的命名空间,改为如下代码:

?

?

参考路径:http://hi.baidu.com/obullxl/blog/item/734d55fb83da3b62034f56e4.html

热点排行