在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 是一款高性能、轻量级的开源Java RPC框架,由阿里巴巴公司开发并维护,它主要解决了企业服务治理的问题,提供了服务注册、服务发现、负载均衡、调用链跟踪等核心功能。在分布式系统中,Dubbo扮演着关键角色,...
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;...
Eclipse_Referenced_File_Contains_Errors Eclipse Xml编译错误引用的文件包含错误 - spring-beans-4.0.xsd 6年前 Git_语言_显示 修改GitHub上项目语言显示的问题 6年前 Gradle_依赖项_排除 Gradle 依赖排除 6年前 ...
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...
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 ...
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 ...
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 ...
- **4.2.14** `UpnpVirtualDirCallbacks`: Contains pointers to file-related callback functions a device application can register to virtualize URLs. ##### 4.3 Initialization and Registration ...
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...
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 ...