SqlMapException: There is no statement named xxx in this SqlMap.
1. java.sql.SQLException: Invalid parameter object type. Expected
2. com.ibatis.sqlmap.client.SqlMapException: There is no statement named xxx in this SqlMap.
问题原因:
Dao类方法中没有写对应sql.xml的id名称;
问题2异常,还有其他两种可能原因:
1、在sqlxml文件中有两个标签的id命名相同;
2、实体映射文件sql.xml未加入到sqlMap-Config.xml文件中。
路径对应到即可。