1、查找对应的xml,mapper,entity对应的配置和名称是否相符:名称不符时会报BindingException异常
2、查找application.properties中的mybatis配置。eg:# 配置文件位置mybatis.config-location=classpath:config/myBatisConfig.xml#实体类包mybatis.typeAliasesPackage=com.news.model#mapper文件位置mybatis.mapper-locations=classpath:mapper/*.xml
3、当前遇到的就这两种情况,如后面预计其它情况,再进行添加