mybatis处理数组

单参数array数组的类型:
Xml代码   收藏代码
  1. <select id="dynamicForeach2Test" resultType="Blog">  
  2.     select * from t_blog where id in  
  3.     <foreach collection="array" index="index" item="item" open="(" separator="," close=")">  
  4.         #{item}  
  5.     </foreach>  
  6. </select> 

猜你喜欢

转载自limeng650419.iteye.com/blog/2199269