请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

11-2 使用mybatis+SpringBoot完成第一个查询demo--请教老师

图片描述
图片描述

2020-02-24 12:19:41.442 [http-nio-8080-exec-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet’
2020-02-24 12:19:41.443 [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet’
2020-02-24 12:19:41.451 [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 8 ms
2020-02-24 12:20:07.386 [http-nio-8080-exec-4] ERROR o.a.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for getUserCount

Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for getUserCount] with root cause

java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for getUserCount
at org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:888)
at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:721)
at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:714)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:141)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:77)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:71)
a

正在回答 回答被采纳积分+3

2回答

慕九州5122850 2021-12-16 12:21:24

请教下你这个怎么解决的?我遇到和你一样的错误怎么都解决不了~

0 回复 有任何疑惑可以回复我~
风间影月 2020-02-27 21:35:22

IllegalArgumentException 参数不对吧?

0 回复 有任何疑惑可以回复我~
  • 提问者 慕雪3403953 #1
    查了是参数不对,我搞了一天,没搞定
    回复 有任何疑惑可以回复我~ 2020-02-27 22:19:50
  • 哈哈哈哈,没想到我居然有权限在这里回复
    回复 有任何疑惑可以回复我~ 2020-02-27 22:20:37
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号