SpringBoot + Mybatis 配置遇到的错误
错误日志
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xm.springboot.mapper.EmployeeMapper.getEmpById
at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:235) ~[mybatis-3.5.6.jar:3.5.6]
at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:53) ~[mybatis-3.5.6.jar:3.5.6]
...
原因
- mapper.xml 配置文件路径写错