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

 

xml如下:

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

 

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

加上sqlmap即可。如下:

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

 

 

 

 

 

 

 

相关文章:

  • 2022-01-30
  • 2021-11-14
  • 2021-09-12
  • 2021-04-14
  • 2022-01-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-15
  • 2021-07-23
  • 2021-07-02
  • 2021-06-09
  • 2021-07-22
  • 2021-07-02
相关资源
相似解决方案