报错:Mapper method ‘xxxx.addEmployee attempted to return null from a method with a primitive return type (boolean).’
出错原因及解决方法:在Mybatis中,返回值是包装类,因此在对应的接口中,需要将返回值修改为包装类即可。
报错:Mapper method ‘xxxx.addEmployee attempted to return null from a method with a primitive return type (boolean).’
出错原因及解决方法:在Mybatis中,返回值是包装类,因此在对应的接口中,需要将返回值修改为包装类即可。