为什么,启动项目以后,访问路径总是报错(报错如下)

来源: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文件有没有问题了

0
0

大周

2020-08-02

Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for getUserCount 这一句是关键。 你的mapper文件中找不到getUserCount这个,你看一下是不是大小写啥的写的有问题。 

0
0

Java接口自动化测试实战,搞定理论基础+典型应用场景

打破传统测试用例设计方法,搞懂基于TestNG的接口自动化测试技术

2086 学习 · 920 问题

查看课程