突然今天遇见这个Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'问题,上网搜了下, 根据异常说的: 就是'beans'没有定义. 这可能是命名空间有问题。
提供如下解决方案:
C:\Program Files\Tomcat 6.0\work\Catalina\localhost
下面的 项目删除, 得联网,这点挺奇怪,没网 不就得把它下载下来,,
另一种可能是spring的版本问题:在引用的spring版本中的例子里找个spring-*.xml;文件将其文件头 复制出来, 或者将 2.5(我的是2.5版的) 改成 2.0试试;
本来项目一点事没有,突然今天遇见这个Spring启动异常: cvc-elt.1: Cannot find the declaration of element
猜你喜欢
转载自bioubiou.iteye.com/blog/1507554
今日推荐
周排行