mybatis错误 Mapped Statements collection does not contain value for
2012-09-28 10:37
435 查看
java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.**.bank.dao.AmountMapper.selectQueryAccount
出现这个错误有网上说的:命名空间没写对,如果使用mapper,则
<mapper namespace="com.sitech.mapper.StudentMapper">
空间中一定要写上Mapper的名称,否则就会报错。
还有一个情况就是interface的名称和你xml的名称没有一致造成的,我是这种情况,新手开发。。。
比如你mapper的名称为AmountMapper 但是xml的名称为AmountMapper_sqlMap.xml这个是ibatis2的惯用写法。。。
出现这个错误有网上说的:命名空间没写对,如果使用mapper,则
<mapper namespace="com.sitech.mapper.StudentMapper">
空间中一定要写上Mapper的名称,否则就会报错。
还有一个情况就是interface的名称和你xml的名称没有一致造成的,我是这种情况,新手开发。。。
比如你mapper的名称为AmountMapper 但是xml的名称为AmountMapper_sqlMap.xml这个是ibatis2的惯用写法。。。
相关文章推荐
- mybatis错误 Mapped Statements collection does not contain value for
- mybatis之Mapped Statements collection does not contain value for...错误原因分析
- 使用Maven构建项目,spring整合mybatis发生错误:Mapped Statements collection does not contain value for
- Spring整合MyBatis错误:Mapped Statements collection does not contain value for
- mybatis错误 Mapped Statements collection does not contain value for
- mybatis错误 Mapped Statements collection does not contain value for
- mybatis之Mapped Statements collection does not contain value for...错误原因分析
- mybatis错误 Mapped Statements collection does not contain value for
- IDEA中配置Mybatis报出“Mapped Statements collection does not contain value for”的错误
- mybatis 错误 Mapped Statements collection does not contain value for
- mybatis错误 Mapped Statements collection does not contain value for
- mybatis错误 Mapped Statements collection does not contain value for
- Mybatis:Mapped Statements collection does not contain value for
- spring整合mybatis bug解决java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for ...
- Mapped Statements collection does not contain value for(mybatis框架项目)
- Mybatis项目从Eclipse转入Idea无法启动问题 Mapped Statements collection does not contain value for
- MyBatis异常java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- 解决mybatis,java.lang.IllegalArgumentException Mapped Statements collection does not contain value for
- mybaits错误:Mapped Statements collection does not contain value for **
- Mapped Statements collection does not contain value for 常见错误处理