Somebody knows how can I set an integer array as paramenter in jdbctemplate ?

I have this query :

sql = select * from depto where id_depto in ( ? )

and I want to set an int array with some ids,

array = (1,2,3,4)

getSimpleJdbcTemplate()
.query(sql,
DeptoMapper,
new Object[]{array}
);

but that is incorret,

Thanks