为什么,启动项目以后,访问路径总是报错(报错如下)
来源:11-2 使用mybatis+SpringBoot完成第一个查询demo

qq_雪飘人间_1
2020-07-30
There was an unexpected error (type=Internal Server Error, status=500).
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
2回答
-
禾希禾希
2020-08-21
我也是这个问题,检查是我的application.yml的mapper-locations单词错了(少了s);
其它就是检查你的sql.xml文件有没有问题了
00 -
大周
2020-08-02
Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for getUserCount 这一句是关键。 你的mapper文件中找不到getUserCount这个,你看一下是不是大小写啥的写的有问题。
00
相似问题