MyBatis:Error evaluating expression ‘‘‘‘. Return value () was not iterable错误

出错原因:xml文件中遍历List 时,该参数的实际值为非List数据。

<foreach>遍历的不是数组或集合,看了xml,原本没有加不等于空字符串,加上后解决!!!