因为参数为空导致“<“foreach collection=“ids” item=“id” separator=”,"> ” 执行失败

The error may involve defaultParameterMap
The error occurred while setting parameters

今天项目运行中这个错误:

因为我传入的参数ids是一个list集合,当list集合为null或者长度为0时,就会出现这样的执行错误;
通过CollectionUtils.isNotEmpty(ids)是否为空,再执行代码;

Logo

鸿蒙生态一站式服务平台。

更多推荐