Mybatis中List入参 情况一直接传List情况二@Param("param")中封装List(假设名称为list). 情况一直接传List 这种情况,List遍历时,collection怎么传就怎么接。item就相当于map,遍历时直接#{item.属性}来用。 情况二@Param(“param”)中封装List(假设名称为list). 这种情况,collection为param.list,其余同情况一。