---
title: "Spring cvc-elt.1: Cannot find the declaration of element 'beans'. "
author: "xiexd"
date: "2010-09-25T16:59:35Z"
tags: ["AOP", "C", "JavaScript", "Spring", "XML"]
categories: ["企业架构"]
slug: "spring-cvc-elt-1-cannot-find-the-declaration-of-element-beans"
draft: false
lastmod: "2010-09-25T16:59:35Z"
id: 771282
url: "https://parkmy.iteye.com/blog/771282"
---

# Spring cvc-elt.1: Cannot find the declaration of element 'beans'.

&lt;script type="text/javascript"&gt; document.body.oncopy = function () { if (window.clipboardData) { setTimeout(function () { var text = clipboardData.getData(&quot;text&quot;); if (text &amp;&amp; text.length &gt; 300) { text = text + &quot;\\r\\n\\n本文来自CSDN博客，转载请标明出处：&quot; + location.href; clipboardData.setData(&quot;text&quot;, text); } }, 100); } } &lt;/script&gt;&lt;script type="text/javascript"&gt; function StorePage() { d = document; t = d.selection ? (d.selection.type != 'None' ? d.selection.createRange().text : '') : (d.getSelection ? d.getSelection() : ''); void (keyit = window.open('http://www.365key.com/storeit.aspx?t=' + escape(d.title) + '&amp;u=' + escape(d.location.href) + '&amp;c=' + escape(t), 'keyit', 'scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes')); keyit.focus(); }&lt;/script&gt;

 &lt;?xml version="1.0" encoding="UTF-8"?&gt;  
&lt;beans xmlns="http://www.springframework.org/schema/beans"  
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
    xmlns:aop="http://www.springframework.org/schema/aop"  
    xmlns:tx="http://www.springframework.org/schema/tx"  
    xmlns:context="http://www.springframework.org/schema/context"  
    xsi:schemaLocation="    
http://www.springframework.org/schema/beans     
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd    
http://www.springframework.org/schema/aop     
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd    
http://www.springframework.org/schema/tx     
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd"&gt;

这个的格式异常：比如spring-aop-2.0.xsd写成spring-aop.xsd 就会爆出Spring cvc-elt.1: Cannot find the declaration of element 'beans'.