当前位置: 代码迷 >> SQL >> com.ibatis.sql地图.client.SqlMapException: There is no statement named 语句名 in thi
  详细解决方案

com.ibatis.sql地图.client.SqlMapException: There is no statement named 语句名 in thi

热度:52   发布时间:2016-05-05 13:07:50.0
com.ibatis.sqlmap.client.SqlMapException: There is no statement named 语句名 in thi

用ibatis的同行估计都遇到过这个问题,有时候怎么检查都找不到错在哪里,我和大家一样了!:-)这里提供我的解决方法:
??? 首先,确定xxx是否存在,(这个好像是废话!)就是说有可能把id写错了
??? 然后,看看sqlmap的useStatementNamespaces也就是命名空间是否? 是???????? true,如果没有写,则默认为false
??? 最后还有一种可能是xml最后</sqlmap>有几个空行造成的,请删除

1 楼 yangyang111310 2011-09-20  
哎 郁闷中啊
2 楼 追风筝的孩子 2012-03-16  
还是没有解决啊
  相关解决方案