List<Integer> ids = new ArrayList<Integer>();
ids.add(1);
ids.add(1);
NamedParameterJdbcTemplate namedParameterJdbcTemplate = new NamedParameterJdbcTemplate(dbUtil.getJdbcTemplate());
Map<String, Object> paramMap = new HashMap<String, Object>();
paramMap.put("ids", ids);
String sql = "select name from person where id in (:ids)";
List<String> result = namedParameterJdbcTemplate.queryForList(sql, paramMap,String.class);