能不能把mybatis中批量插入的bug修复一下
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [ERRORnested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='__frch_item_1.supplierId', mode=IN, javaType=class java.lang.Integer, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #13 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: java.sql.SQLException: Error], template might not exist or might not be accessible by any of the configured Template Resolvers
每条记录对应的参数只有12个,但是报错说第13个参数为空,判断是mybatis解析不了这种valuse后多条记录的语句. 测试结论:查询正常,新增单条正常,新增多条就报错。 使用原生获取DataSource获取连接然后手动操作是没问题的,但就是经过mybatis就报错。