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.findTruckS
at 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 more
Caused by: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for UserMapper.findUserInfo
at 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、解决办法
将这个解注,如果删除掉需要将其方法删掉