首页 / APACHE / Error querying database. Cause: org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map com.lxh.mybatis.mapper.UserMapper.int
Error querying database. Cause: org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map com.lxh.mybatis.mapper.UserMapper.int
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Error querying database. Cause: org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map com.lxh.mybatis.mapper.UserMapper.int,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2259字,纯文字阅读大概需要4分钟。
内容图文
![Error querying database. Cause: org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map com.lxh.mybatis.mapper.UserMapper.int](/upload/InfoBanner/zyjiaocheng/1298/1d4041eb5f9346f494db882f5b3e51ae.jpg)
1.报错信息:
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map com.lxh.mybatis.mapper.UserMapper.int
### Cause: org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map com.lxh.mybatis.mapper.UserMapper.int
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:26)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:111)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:102)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:66)
at com.lxh.mybatis.test.MybatisTest.main(MybatisTest.java:44)
Caused by: org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map com.lxh.mybatis.mapper.UserMapper.int
at org.apache.ibatis.builder.MapperBuilderAssistant.setStatementParameterMap(MapperBuilderAssistant.java:319)
at org.apache.ibatis.builder.MapperBuilderAssistant.addMappedStatement(MapperBuilderAssistant.java:283)
at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:107)
at org.apache.ibatis.session.Configuration.buildAllStatements(Configuration.java:698)
at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:629)
at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:624)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:107)
... 3 more
Caused by: java.lang.IllegalArgumentException: Parameter Maps collection does not contain value for com.lxh.mybatis.mapper.UserMapper.int
at org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:797)
at org.apache.ibatis.session.Configuration.getParameterMap(Configuration.java:570)
at org.apache.ibatis.builder.MapperBuilderAssistant.setStatementParameterMap(MapperBuilderAssistant.java:317)
... 9 more
2.原因:没留意自动补齐,属性名应为paramType
3.解决:把属性名修改过来就好了
原文:https://www.cnblogs.com/lxhK/p/13109605.html
内容总结
以上是互联网集市为您收集整理的Error querying database. Cause: org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map com.lxh.mybatis.mapper.UserMapper.int全部内容,希望文章能够帮你解决Error querying database. Cause: org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map com.lxh.mybatis.mapper.UserMapper.int所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。