IDEA报错 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.mine.mapper.DepartmentMapper.getDepartments
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210329212454137.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2ZsbG93X3dpbmQ=,size_16,color_FFFFFF,t_70)
原来是这里写错了,*.xml应该是多个locations
mybatis.mapper-location=classpath:mybatis/mapper/*.xml
改成
mybatis.mapper-locations=classpath:mybatis/mapper/*.xml
就可以运行了