出现该错误的原因有可能是 namespace使用的Dao接口全限定类名,与项目不一致,检查是否一致。 <mapper namespace= "com.dgnode.mybatis.mapper.CarMapper">