解决Spring JDBC插入数据类型不匹配问题

内容概览
在使用Spring JDBC进行数据插入时,遇到了字段类型不匹配的问题。具体表现为在插入数据时,数据库字段deleted的类型为smallint,而DO对象中的类型为boolean,导致插入失败。本文将探讨如何解决这一问题,确保数据能够顺利插入。
LEAVEs
2024-07-29 19:09
评论3
org.springframework.jdbc.BadSqlGrammarException: cn.iocoder.yudao.module.wms.dal.mysql.inbound.ContainerInboundDetailMapper.insert (batch index #1) failed. Cause: java.sql.BatchUpdateException: Batch entry 0 INSERT INTO yudao_wms_container_...

芋道快速开发平台 Boot + Cloud

星球已运营 4 年零 211 天

累计超过  34000+  位成员加入

6小时前

最近更新

40000+

内容数

进入星球主页