Mapper method 'com.inspur.est.umc.sequence.dao.IUmcSequenceDao.getValue attempted to return null from a method with a primitive return type (long).
解决:
xml文件的returnType = 包装类型
mapper类的返回类型也定义为包装类型
btw:
方法传参尽量使用包装类防止null报错!
Mapper method 'com.inspur.est.umc.sequence.dao.IUmcSequenceDao.getValue attempted to return null from a method with a primitive return type (long).
解决:
xml文件的returnType = 包装类型
mapper类的返回类型也定义为包装类型
btw:
方法传参尽量使用包装类防止null报错!