首页 > 其他分享 >mybatis plus saveBatch报错问题

mybatis plus saveBatch报错问题

时间:2024-03-14 15:22:50浏览次数:29  
标签:SessionRecordHumanServiceImpl Service saveBatch 报错 mybatis public


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

相关文章

  • React报错:Uncaught Error: Too many re-renders. React limits the number of renders
    UncaughtError:Toomanyre-renders.Reactlimitsthenumberofrenderstopreventaninfiniteloop.atrenderWithHooks(react-dom.development.js:16317:1)atmountIndeterminateComponent(react-dom.development.js:20074:1)atbeginWork(react-do......
  • 【AutoCAD .NET】创建Hatch时报错eInvalidInput
    问题出处https://forums.autodesk.com/t5/net/hatch-to-drawn-polyline-e-message-quot-einvalidinput-quot/m-p/9631373问题描述我使用以下语句绘制了一条多段线:Acad.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("PL",true,false,true);按如下......
  • Qt 报错: QWidget: Must construct a QApplication before a QWidget
    最近遇到一个问题,程序编译时出现报错:Mustconstructa QApplication beforeaQWidget。我的main.cpp有这样的代码1intmain(intargc,char*argv[])2{3QApplicationa(argc,argv);4}另外一个SS.h1classSS:publicQWidget2{3Q_OBJECT4public:......
  • mybatis oracle数据库批量插入数据,忽略主键重复
    dao方法IntegerinsertPackagesNew(@Param("list")List<InfCollectpackage>list);mapper.xml<insertid="insertPackagesNew"parameterType="java.util.List">MERGEINTOINF_COLLECTPACKAGEAUSING(&......
  • Springboot2+consul启动时报错,读取的SystemConfig类的值全部为null
    【错误描述】     解决方案:检查是否已经在pom.xml配置了consul的相关jar包引用。 排查过程:检查了启动的日志,跟旧项目的正常日志进行对比,发现缺少了读取配置boostrap文件的日志。怀疑没有启动consul服务去远端读取consul的内容。 ......
  • MyBatis原理解析
    MyBatis入门的四行代码 //<1>加载配置文件 InputStreamis=Resources.getResourceAsStream("mybatis.xml"); //<2>创建sessionFactory对象 sessionFactory=newSqlSessionFactoryBuilder().build(is); //<3>获取sqlSession对象信息SqlSessionsessio......
  • IDEA启动报错 Internal error.Please refer to http://jb.ge/ide/critical-startup-er
    1.问题描述启动IDEA遇到报错Internalerror.Pleaserefertohttp://jb.ge/ide/critical-startup-errors2.问题原因java.net.BindException:地址已在使用中:也就是idea启动时需要占用一些端口,但是已经被其它打开的软件占用了。IDE正在本地主机上启动服务器,它将尝试在6942和......
  • linux系统报错AER PCIe Bus Error
    1、报错信息pcieport0000:00:1c.7:AER:PCIeBusError:severity=Corrected,type=PhysicalLayer,(ReceiverID)device[8086:a33f]errorstatus/mask=00000001/00002000[0[RxErr2、修改grub文件//备份grubsudocp/etc/default/grub/etc/default/grub.bak//随便......
  • docker系列-报错以及解决指南
    1.windows运行docker报错WindowsHypervisorisnotpresentDockerDesktopisunabletodetectaHypervisor.HardwareassistedvirtualizationanddataexecutionprotectionmustbeenabledintheBIOS.DockerDesktop-WindowsHypervisorisnotpresentDockerDeskto......
  • 基于ts的node项目引入报错归纳
    一、导入类型定义文件错误node_modules/@types/leaflet/index.d.ts:128:1128export=e;Thismoduleisdeclaredwith'export=',andcanonlybeusedwithadefaultimportwhenusingthe'esModuleInterop'flag.这个错误表明使用export=语法,但TypeSc......