mybatis 报错:Caused by: java.lang.IllegalArgumentException: Mapped Statements collection does not cont
2016-11-20 15:48
441 查看
在新添加mybatis的mapper文件以后,启动tomcat服务器没有报错,但是调用方法的使用报了如下错误:
Caused by: java.lang.IllegalArgumentException: Mapped Statements collection does not cont。。。
解决:
上网查了一下,发现添加mapper文件以后,一定要在mybatis的主配置文件里面注册,这个是忘了注册了,所以导致找不到我新建的配置文件。
于是我就在mybatis的主配置文件里面添加了下面这句话,成功解决! OK
Caused by: java.lang.IllegalArgumentException: Mapped Statements collection does not cont。。。
解决:
上网查了一下,发现添加mapper文件以后,一定要在mybatis的主配置文件里面注册,这个是忘了注册了,所以导致找不到我新建的配置文件。
于是我就在mybatis的主配置文件里面添加了下面这句话,成功解决! OK
相关文章推荐
- Caused by: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value
- spring整合mybatis bug解决java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for ...
- mybatis报错:java.lang.IllegalArgumentException: Mapped Statements collection does not contain
- 【Mybatis】java.lang.IllegalArgumentException: 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
- MyBatis出现java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- MyBatis异常java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for …
- java.lang.IllegalArgumentException: Mapped Statements collection does not contai in 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
- ### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value f
- Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for U
- java.lang.IllegalArgumentException: Mapped Statements collection does not....
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.dao
- Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value forCommand.c
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for /package
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for