mybatis两个项目之间掉用mapper报错

A项目调用B项目的mapper

首先描述一下问题:

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.wst.common.mapper.AccountMapper.getByAccount

我的配置:

A项目pom引入B项目的依赖

配置了mapper扫描

在调用B项目的方法是报错

直接调用mapper.insert不会报错且可以正常插入数据库数据,但是查询会报错

这个mapper里面的这个方法重名了,检查一下。