报错信息 从旧项目复制了个别的Mapper逻辑到新项目中报错: Invalid bound statement (not found): com.xxx.mapper.XxxMapper.selectXxx() 报错截图 报错原因 你一定是少拷贝了东西了!!! 除了命名空间不对、注入的Bean路径不对,最大的可能就是你拷贝了Mapper的类,但是没有拷贝Mapper.xml过去!