sessionRecordHumanService.saveBatch(dataList); 具体报错如下:
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error updating database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.xdf.data.service.api.dao.tidb.SessionRecordHumanMapper.insert
### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.data.service.api.dao.tidb.SessionRecordHumanMapper.insert
@Service public class SessionRecordHumanServiceImpl extends ServiceImpl<SessionRecordHumanMapper, SessionRecordHumanDO> implements SessionRecordHumanService { }
测试环境没问题,发布到生产环境报错如上,后按如下修改解决
@Service public class SessionRecordHumanServiceImpl extends ServiceImpl<SessionRecordHumanMapper, SessionRecordHumanDO> implements SessionRecordHumanService { @Override public void saveBatch(List<SessionRecordHumanDO> list) { super.saveBatch(list); } }
标签:SessionRecordHumanServiceImpl,Service,saveBatch,报错,mybatis,public From: https://www.cnblogs.com/ludagogo/p/18072927