具体方法一般要检查配置文件命名空间,还有applicationContext.xml里的配置p:dataSource-ref="dataSource" p:configLocation="classpath:mybatis-config.xml">classpath*:com/xxx/**/*Mapper.xml