在eclipse中,有时候在xml文件中,特别是于Spring相关的配置文件中,会出现一些不影响程序正常运行的编译错误,如:
Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.0.xsd).
可通过如下步骤解决这个编译错误:
1. Spring的版本变更了,但是Eclipse的编译器还是使用之前缓存的spring-beans-**.xsd文件。其原因是
对于Eclipse编译器来说有个缓存会缓存这些配置文件,这样验证的时候会告诉你版本不统一。
解决办法是清空这些文件并强制eclipse重新加载这些文件。
1) Preferences -> General -> Network Connections -> Cache
选择响应的文件病点击删除或者直接点击删除全部。
2) 如果是Maven工程,右击工程,并选择Maven,选择Update Project.
3)如果以上两步都不行,则可关闭project并重新打开强制eclipse进行编译。
2. 当前使用的spring版本和配置文件中配置的不相同,导致xsd等文件不会被正确加载,改成当前版本即可。
如果不成功则重复上面的2)3)两步即可。
3. 在使用spring时,使用多个配置文件,那么头里面的配置一定要统一。
如果不成功则重复上面的2)3)两步即可。
相关推荐
dubbo找不到dubbo.xsd报错, 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...
dubbo.
MQTTv5版的客户端库,原地址:https://github.com/eclipse/paho.mqtt.java。 本资源合入了解决低于android7.0报错Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.net.ssl.SNIHostName"的...
Eclipse Xml编译错误引用的文件包含错误 - spring-beans-4.0.xsd 6年前 Git_语言_显示 修改GitHub上项目语言显示的问题 6年前 Gradle_依赖项_排除 Gradle 依赖排除 6年前 Gradle_依赖_管理 Gradle依赖管理 6年前 ...
Thymeleaf - Spring Security integration modules [Please make sure to select the branch corresponding to the version of Thymeleaf you are using] Status This is a thymeleaf extras module, not a part ...
The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files 解决方法: 导入spring-tx-4.2.2.RELEASE.jar包。
validation-api-2.0.0.Final.jar 主要用于支持Maven项目,缺失可引起以下异常The type javax.validation.Payload cannot be resolved. It is indirectly referenced from required .class files
The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced异常缺少的包
Windows 95 and NT are not supported in BurnInTest version 4.0 and above. Use a version of BurnInTest prior to 3.1 for compatibility with W95 and NT. Version History =============== Here is a ...
jaxb-impl-2.1.jar包很有作用的,希望你们能喜欢
Windows.PowerShell.Pocket.ReferenceD.Lee.Holmes.文字版
run-time errors (e.g. "Error reading blahblahblah: Property does not exist.") if you attemt to run the demos without fixing this problem. Luckily it is very easy to make the forms work again; Just ...
Spring (i.e.: have never used Spring's XML configuration language, it is suggested that you first read Chapter 3. IoC of the Core Spring reference manual documentation. You will also notice that this ...
7- Creating a new mesh or overwriting existing mesh to affect all referenced objects. 8- Optional smart execution by avoiding the calculation when not need (when there is no intersection or the ...
百度 编译镜像 bash apollo.sh build 报错 文件 ERROR: /apollo/modules/drivers/camera/BUILD:49:1: no such package '@adv_plat//': Error downloading...
This file contains 2176 queries. Each query entry consists of the following fields: <query id> - A query ID formatted as the letters "EL_CLCMN_" (if a Chinese language query) or "EL_CLENG_" (if ...
Referenced Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
referenced in this project |--- src // solutions for problems | |-- _001_TwoSum | | |-- Practice.java // code skeleton | | |-- Solution.java | | |-- Solution*.java // other solutions for this problem ...
and is referenced frequently to this day. (See Duda & Hart, for example.) The data set contains 3 classes of 50 instances each, where each class refers to a type of iris plant. One class is ...
Panoply plots geo-referenced and other arrays from netCDF, HDF, GRIB, and other datasets. Panoply is a cross-platform application that runs on Macintosh, Windows, Linux and other desktop computers. ...