mp中批量保存效率降低的问题 在批量保存中,如果集合长度超过了2000,效率会降低。将集合分块可以解决问题 Lists.partition(childPosPolicyArrayList,2000).forEach(childrenPolicyPartitionList->{ posChildrenPolicyService.saveBatch(childrenPolicyPartitionList); });