title: how to pass list parameter in IN clause using jdbcTemplate
body: <p>I want to pass list values in IN clause using jdbcTemplate in mysql query. Like below,</p>
  
  <pre><code> List&lt;Long&gt; listId= new ArrayList&lt;&gt;();
   listId.add(1234L);
   listId.add(1235L);
   listId.add(1236L);
  
   String type ="A";
   List&lt;BojoClass&gt; result = new ArrayList&lt;&gt;();
   String sql="select column1,column2  from table where columName in(?)"
   result = jdbcTemplate.query(sql, new Object[]{listId}, new BeanPropertyRowMapper&lt;BojoClass&gt;(BojoClass.class));
  </code></pre>
  
  <p>How to achieve this in best way?</p>