防止sql注入的最佳方式 Springjdbc批量删除怎么防止注入?

Springjdbc批量删除怎么防止注入?public boolean del(String id)抛出SQLException{final String[]id=ids.split编号(",")

Springjdbc批量删除怎么防止注入?

public boolean del(String id)抛出SQLException{final String[]id=ids.split编号(",") jdbcTemplate.batchUpdate(“从id=”的位置删除?,new BatchPreparedStatementSetter(){public void setValues(PreparedStatement ps,int i)抛出SQLException{ps.setString系列(1,id[i])}公共int getBatchSize(){返回内径长度}})返回true}