org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

报错信息:
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

查看classes文件,mapper.class和mapper.xml需要在同一个目录下
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

有时候resources目录下mapper.xml的目录名称与其mapper.class的目录名称一致,但编译后,两者不在统一目录下,如:
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

此时新建mapper.xml的目录为xxx/xxx/xxx/mapper.xml即可,如果是xxx.xxx.xxx.mapper.xml就会出现问题