<if test="myList != null and myList.size() >0">
    <foreach collection="myList
    </foreach>
</if>

相关文章: