Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for U
来源:互联网 发布:mac ps4手柄设置 编辑:程序博客网 时间:2024/04/29 09:27
1、错误描述
### Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for UserMapper.findUserInfo### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for TruckMapper.findTruckSat org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23)at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:107)at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:98)at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:601)... 80 moreCaused by: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for UserMapper.findUserInfoat org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:768)at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:603)at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:596)at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:103)... 85 more
2、错误原因
由提示可知,UserMapper中没有findUserInfo拼接的SQL;检查发现,这个SQL语句注释掉了
3、解决办法
将这个解注,如果删除掉需要将其方法删掉
0 0
- Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for U
- Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for ^
- Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- ### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value f
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for /package
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- MyBatis异常java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- MyBatis:java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for...
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for %
- mybatis错误java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.ph51
- MyBatis出现java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- mybatis:java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- 【Mybatis】java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- 关于mysql的简单的备份跟恢复
- 状态机
- SQL Server2014创建新用户以及为此用户创建角色或直接授予权限
- Python学习笔记(变量类型)
- 《C陷阱与缺陷》总结
- Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for U
- @dynamic
- macOS 下安装配置 Tomcat
- C++中的Sleep() 函数
- 关于卡尔曼滤波和粒子滤波最直白的解释
- 警察和厨师1
- Makefile常用函数总结
- 《STL 源码剖析》 读后感
- 编程之禅 -- 写给自己的话