(一定赚了分才采纳) java.sql.SQLException:关闭的 Resultset:next
(一定赚了分才采纳) java.sql.SQLException:关闭的 Resultset:next
String sql="select * from t_student";
x05x05List list = jdbcTemplate.query(sql,new RowMapper() {
x05x05x05public Object mapRow(ResultSet rs,int arg1) throws SQLException {
x05x05x05x05List list = new ArrayList();
x05x05x05x05try {
x05x05x05x05x05
x05x05x05x05x05x05while (rs.next()) {
x05x05x05x05x05x05.x05
}
而且异常指向的是这一行:
List list = jdbcTemplate.query(sql,new RowMapper()