mybatis 更新操作报错:
org.apache.ibatis.binding.BindingException: Mapper method 'xxx attempted to return null from a method with a primitive return type (int).
最后发现是 更新操作语句 用的 @Select ,如下:
@Select("update xxxxx")
改成 @Update 就好了
@Update("update xxxxx")