Ibatis报错:Could not find SQL statement to include with refid “srv_users.ibatorgen

使用命名空间,如<sqlMap namespace="srv_users"> 时,一定要在 sqlmap-config.xml 中 <settings >中添加 useStatementNamespaces="true"    如:

<settings cacheModelsEnabled="false" enhancementEnabled="false"
  maxSessions="64" maxTransactions="8" maxRequests="128" useStatementNamespaces="true"  />

你可能感兴趣的:(sql,xml,ibatis)