`

Referenced file contains errors 解决方法

 
阅读更多



        在Ibatis 的sqlMap或者sqlMapConfig配置文件中如果出现以下错误信息:

Referenced file contains errors (http://www.ibatis.com/dtd/sql-map-config-2.dtd). For more information, right click on the message in the 
 Problems View and select "Show Details..."

可以通过修改配置文件的头信息:

将 
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" 
"http://www.ibatis.com/dtd/sql-map-2.dtd"> 
改为 
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> 

 因为要验证这个xml需经dtd,而ibatis后来被收归apache下,所以就要修改。

 

 

同样在Spring的配置文件下也出现了同样的错误,在网上找了很多解决办法,但是大多数都说的比较模糊,其实像这种错误是属于配置文件的验证错误,实际上并不影响项目的正常运行,此时我们可以选择:

Window--Preferences--General--Validation,可以去掉XML Validator 和 XSL Validator 等文件类型的验证信息(包括Manual和Build),如下图所示:

 

PS:同样的,如果其他类型的文件出现这种类似的验证错误,你可以去掉对应文件类型的验证。同时为了提高项目启动和编译速度,可以适当去掉某些文件的验证。

至于去掉验证功能之后是否有不太好的后果,暂时也不得而知。

  • 大小: 101.6 KB
分享到:
评论

相关推荐

    dubbo.

    Dubbo 是一款高性能、轻量级的开源Java RPC框架,由阿里巴巴公司开发并维护,它主要解决了企业服务治理的问题,提供了服务注册、服务发现、负载均衡、调用链跟踪等核心功能。在分布式系统中,Dubbo扮演着关键角色,...

    dubbo找不到dubbo.xsd报错

    dubbo找不到dubbo.xsd报错, cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. ... 2) the document could not be read;...

    常规Java工具,算法,加密,数据库,面试题,源代码分析,解决方案

    Eclipse_Referenced_File_Contains_Errors Eclipse Xml编译错误引用的文件包含错误 - spring-beans-4.0.xsd 6年前 Git_语言_显示 修改GitHub上项目语言显示的问题 6年前 Gradle_依赖项_排除 Gradle 依赖排除 6年前 ...

    Note_scalad.tar.gz

    Eclipse_Referenced_File_Contains_Errors Git_Language_Show Gradle_Denpendencies_Exclude Gradle_Denpendency_Management Gradle_Gretty Gradle_Linux_Install Gradle_STS_Create Gradle_Test HashSet_VS_TreeSet...

    Chinese Entity Linking Comprehensive

    This file contains 2176 queries. Each query entry consists of the following fields: &lt;query id&gt; - A query ID formatted as the letters "EL_CLCMN_" (if a Chinese language query) or "EL_CLENG_" (if ...

    Senfore_DragDrop_v4.1

    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 ...

    微软内部资料-SQL性能优化3

    The rsc_bin column of master..syslockinfo contains the resource block in hexadecimal format. For an example of how to decode value from this column using the information above, let us assume we have ...

    UPnP_Programming_Guide

    - **4.2.14** `UpnpVirtualDirCallbacks`: Contains pointers to file-related callback functions a device application can register to virtualize URLs. ##### 4.3 Initialization and Registration ...

    Vagaa哇嘎画时代--体验群体智慧的力量!

    2.7 Transmit or communicate any data that contains software viruses or any other computer code, files or programs designed to interrupt, destroy or limit the functionality of any computer software or...

    acpi控制笔记本风扇转速

    Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the AcpiHwInitialize function - the FADT registers are now validated when the table is loaded. Added two new warnings during FADT ...

Global site tag (gtag.js) - Google Analytics