The incoming request has too many parameters. The server supports a maximum of 2100 parameters.
传入请求的参数太多。服务器最多支持2100个参数。
修改前:
Controller层代码:
List<HashMap<String, Object>> infoList=demoService.getInfoList();
demoService.updateInfo(infoList);
mybatis代码:
<insert id="insertInfo" parameterType="list">
insert into tableA(
columnA,
columnB
)values
<foreach collection="list" item="item" index="index" separator=",">
(
#{item.parameterA},
#{item.parameterB}
)
</foreach>
</insert>
修改后:
pom文件引入jar包:
<dependency>
<gro