解决报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): ******

解决报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): ******
开发工具:mac版idea
项目:SpringBoot+maven
这个错误其实从字面上就能看出来是mapper.xml中的一个sql与mapper.java无法对应,查找不到,无法识别。
在度娘查询资料,大部分写的都一样,是以下几点原因:
1、mapper接口和mapper.xml是否在同一个包(package)下?名字是否一样(仅后缀不同)?
2、mapper.xml的命名空间(namespace)是否跟mapper接口的包名一致?
3、接口的方法名,与xml中的一条sql标签的id一致
4、如果接口中的返回值List集合(不知道其他集合也是),那么xml里面的配置,尽量用resultMap(保证resultMap配置正确),不要用resultType
5、如果你的项目是maven项目,请你在编译后,到接口所在目录看一看,很有可能是没有生产对应的xml文件,因为maven默认是不编译的,因此,你需要在你的pom.xml的里面,加这么一段:

解决报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): ******

对于我最后的解决办法,五个都试过了还不行,最后发现其实我的问题还是术语第一种情况
解决报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): ******
发生错误的时候,我打开我的target编译结果文件夹,发现我新建的mapper.eboss文件夹不是上方所看到的上下级关系,而是和代码中一样文件夹名称直接就是mapper.eboss,根据mybatis的配置,这样会导致无法扫描到mapper.xml文件。修改一下,让eboss文件夹在mapper下面就行了。
解决报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): ******