1.检查是否同包且同名
2.检查napper.xml的namespace和接口的地址是否一致
3.接口方法名是否一样
4.如果是maven项目检查pom.xml的<build></build>例是否有
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<!--设置mapper.xml文件扫描:不配置这个的话就扫描不到.xml会报 :org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):错误-->
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.json</include>
<include>**/*.ftl</include>
</includes>
</resource>
</resources>
</build>