使用mybatis注解开发出现:mapper method attempted to return null from a method with a primitive return type (int) 在使用mybatis框架开发时控制台报错 去网上查看资料,找了几个都没有解决问题,最后通过自己Code Review 发现原来是在cv的时候没有改注解 在删除语句中错误的使用了查询注解,改正以后就可以了