com.ibatis.sqlmap.client.SqlMapException: There is no statement named in this Sq

428 阅读1分钟

最近的项目,换了mybatis开发,由于很久没用了,导致出现各种问题,搞的头疼 比如下面这个

image.png com.ibatis.sqlmap.client.SqlMapException: There is no statement named in this SqlMap.

可能存在3种情况:

1、在xxx.xml文件中有两个标签的id命名相同;

2、DAO实现类方法中没有写对应xxx.xml的id名称;

3、实体映射文件xxx.xml未加入到sqlMap-Config.xml文件中。