我使用的是jdbcTemplate,因为忘记向list中加入参数,所以报错。
解决方案,: String sql = "select * from table where id = ?";
List list = new ArrayList();
list.add(param);
相关文章: