In mybatis passing array list is as simple as passing a map into

please follow the below codes

Any Dao method like

   List<> selectPostIn ( List<String> params );

And the Dao.xml
<select id="selectPostIn" resultType=""  parameterType="java.util.List">
    <foreach item="item" index="index" collection="list" open="(" separator="," close=")">
Just make sure collection name should be "list" only
You can pass a List instance or an Array to MyBatis as a parameter object. When you do, MyBatis will automatically wrap it in a Map, and key it by name. List instances will be keyed to the name “list” and array instances will be keyed to the name “array”

I have tried with list its working
2012/02/23 16:33 2012/02/23 16:33
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS ::

댓글+트랙백 ATOM ::

트랙백 주소 :: 이 글에는 트랙백을 보낼 수 없습니다

트랙백 RSS ::

트랙백 ATOM ::