字符串不行,数组或者集合才可以<foreach item="item" index="index" collection="ids" open="("separator="," close=")"> #{item}</foreach>