您的位置:首页 > 数据库

SqlMapException: There is no statement named xxx in this SqlMap.

2018-01-02 15:33 435 查看
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文件中。



路径对应到即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息