0
我正在为iBatis制作缓存。我使用cache-model
与flushInterval
,flushOnExecute
行和property
命名为reference-type
。然后部署后,我拿到提到的错误:iBatis提供了一个错误:“com.ibatis.sqlmap.client.SqlMapException”
java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/end()'. Cause: com.ibatis.sqlmap.client.SqlMapException: There is no statement named ibatorgenerated_updateByPrimaryKeySelective in this SqlMap.`
我有'useStatementNamespaces =“true”'设置。 [这篇文章](http://mail-archives.apache.org/mod_mbox/ibatis-user-java/200612.mbox/%[email protected]%3E)让我有趣的轨道。必须检查出来:) – mico 2011-05-11 09:17:43
在属性'语句= query_name'上的'FlushOnExecute'元素在命名空间'命名'时,我不得不使用'naming.query_name'。通常命名空间的使用不是一直需要的,但这部分需要它。我的帮助是在我之前的评论中提到的那篇文章中找到的。 – mico 2011-05-11 11:36:53