```java
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.atguigu.mybatis.dao.EmployeeMapperPlus.getEmpsByDeptId
### The error may exist in mapper/DepartmentMapper.xml
### The error may involve com.atguigu.mybatis.dao.DepartmentMapper.getDeptByIdStep
### The error occurred while handling results
### SQL: select id, dept_name from tbl_dept where id=?
### Cause: ***java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.atguigu.mybatis.dao.EmployeeMapperPlus.getEmpsByDeptId***
原因排查:(网络其他相关资源的参考)
(1)在mybatis配置文件中,mapper映射文件配置没有错误。
(2)XML文件中的namespace也没有错误。
(3)mapper.xml中的方法和接口mapper的方法对应。
(4)xml文件和接口文件在同一个目录下。
(5)对应返回的封装类必须写select时要一一对应
除去这5条外有一条重要的疏忽;
select="com.atguigu.mybatis.dao.EmployeeMapperPlus.`getEmpsByDeptId "``
**getEmpsByDeptId "```**后面的方法与命名空间的复制,最后不要有空格,不能有空格!