工具及背景: IntelliJ IDEA 2016.1.3 Ultimate.spring boot, maven项目,利用mybatis 注解的方式查询mysql 在自动生成工具生成代码后,service层调用Dao层出现了这样一个错误:检查mapper文件和配置文件等都没问题: 如何解决这一问题呢? 加@Repository 第二种解决方法:我在IDEA中安装了[iBATIS/MyBatis mini-plugin]插件后,完美解决.(另有MyBatis Plugin插件,但是收费,需要li…