org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
如果在项目中遇到该异常,通常是项目无法下载到spring-beans-2.5.xsd文件而出现的问题,这里的版本号因项目版本而异。
这里需要配置本地的xsd文件,方法如下:
找到你的项目中引用的spring的核心包,spring.jar
用压缩文件打开,找到该路径
org/springframework/beans/factory/xml/
并将这个路径下的xsd文件以下列形式配置到applicationContext.xml文件中,如果有多个配置文件,则全部代替
即以
classpath:/org/springframework/beans/factory/xml/spring-beans-2.5.xsd
代替
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
使得从本地直接读取该配置文件
转自: http://blog.csdn.net/wengang285/article/details/7587264
分享到:
相关推荐
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...
西门子_CE DECLARATION of CONFORMITYpdf,
Files contained in apt-mirror-api-0.1.jar: ...com.sun.mirror.declaration.ClassDeclaration.class com.sun.mirror.declaration.ConstructorDeclaration.class com.sun.mirror.declaration.Declaration.class ...
The C++ Standard Library A Tutorial and Reference (2nd Edition)+cppstdlib-code.zip C++标准库(第二版)英文版.pdf 非扫描版+源代码 Prefaceto the SecondEdition xxiii Acknowledgments for the Second...
解决经常遇到的The import org.apache.commons.codec cannot be resolved问题,只需导入文件中的commons-codec-1.11.jar就可以,如和导入包就不赘述了。
An asynchronous, callback-based Http client for Android built on top of Apache's HttpClient libraries. Changelog See what is new in version 1.4.9 released on 19th September 2015 ...Javadoc ...
RzBorder.pas Number of elements differs from declaration TRzLEDCharacters 在装完Raize控件之后编译老是出如下错误: [Pascal Error] RzBorder.pas(1429): E2072 Number of elements (125) differs from ...
requirement analysis •conceptual database design •choice of the DBMS •data model mapping •physical design •implementation
The Way to Go,: A Thorough Introduction to the Go Programming Language 英文书籍,已Cross the wall,从Google获得书中源代码,分享一下。喜欢请购买正版。 目录如下: Contents Preface......................
西门子_EG-Konformit�鋞serkl�鋜ung EC Declaration of Conformitypdf,
We can find find out the length of the variable by using the variable length . JSP string array String array cannot hold numbers or vice- versa. Arrays can only store the type of data specified at ...
1.2.3 Targets of the language....................................................................................5 1.2.4 Guiding design principles........................................................
This file contains a summary of what you will find in each of the files that make up your UnmanagedDVB application. UnmanagedDVB.vcproj This is the main project file for VC++ projects generated ...
施耐德电气 Twido可编程控制器产品认证——CE Manufacturer’s Declaration NOI10M3pdf,施耐德电气 Twido可编程控制器产品认证——CE Manufacturer’s Declaration NOI10M3
C语言所有复杂的指针声明,都是由各种声明嵌套构成的。如何解读复杂指针声明呢?... Once everything in the parentheses has been parsed, jump out of it. Continue till the whole declaration has been parsed.
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...
4.1. Introduction to the Spring IoC container and beans .............................................. 22 4.2. Container overview .........................................................................
3.2 Designing by Declaration.... . 44 3.3 Creating the Opening Screen...45 3.4 Using Alternate Resources.... . 55 3.5 Implementing an About Box.... 57 3.6 Applying a Theme..... . . 61 3.7 Adding ...
4.1. Introduction to the Spring IoC container and beans .............................................. 22 4.2. Container overview .........................................................................
The Advantages of C ......................................................................................11 The Disadvantages of C........................................................................