[Solved] Mybatis crud insert error: org.apache.ibatis.binding.BindingException: Mapper method ‘com.liang.dao.UserMapper.addUser…

mybatis crud, insert error: org.apache.ibatis.binding.BindingException: Mapper method ‘com.liang.dao.UserMapper.addUser attempted to return null from a method with a primitive return type (int).
select—>insert
Successful insertion

Read More: