The content of element type "sqlMapConfig" is incomplete,

The content of element type "sqlMapConfig" is incomplete, it must match "(properties?,settings?,resultObjectFactory?,typeAlias*,typeHandler*,transactionManager?,sqlMap+)+".   

 

xml如下:

The content of element type "sqlMapConfig" is 
incomplete,
<?xml version="1.0" encoding="GB2312" standalone="no"?>
<!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
        "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
<sqlMapConfig>
    <settings cacheModelsEnabled="false" enhancementEnabled="true" lazyLoadingEnabled="false" errorTracingEnabled="true"
              maxRequests="400" maxSessions="40"
              maxTransactions="32" useStatementNamespaces="true"/>
   

</sqlMapConfig>
The content of element type "sqlMapConfig" is 
incomplete,

 

原因是:sqlmap.xml中节点sqlMap 没有加上。

加上sqlmap即可。如下:

The content of element type "sqlMapConfig" is 
incomplete,
<?xml version="1.0" encoding="GB2312" standalone="no"?>
<!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
        "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
<sqlMapConfig>
    <settings cacheModelsEnabled="false" enhancementEnabled="true" lazyLoadingEnabled="false" errorTracingEnabled="true"
              maxRequests="400" maxSessions="40"
              maxTransactions="32" useStatementNamespaces="true"/>

<sqlMap resource="conf/dal/sqlmap/aa.ibatis.xml"/> </sqlMapConfig>
The content of element type "sqlMapConfig" is 
incomplete,

The content of element type "sqlMapConfig" is incomplete,

上一篇:plsql登陆oracle出错!连接Oracle 10g时ORA-12514: TNS: 监听进程不能解析在连接描述符中给出的


下一篇:Windows不能在本地计算机启动OracleDBConsoleorcl .错误代码2