template.queryForObject(String sql, RowMapper<T> rowMapper, Object... args) 只返回一条记录,
template.query(String sql, RowMapper<T> rowMapper) 可以返回一组记录
template.queryForObject(String sql, RowMapper<T> rowMapper, Object... args) 只返回一条记录,
template.query(String sql, RowMapper<T> rowMapper) 可以返回一组记录