(一定赚了分才采纳) java.sql.SQLException: 关闭的 Resultset: next
Stringsql="select*fromt_student";List<Students>list=jdbcTemplate.query(sql,newRowMapp...
String sql="select * from t_student";
List<Students> list = jdbcTemplate.query(sql, new RowMapper() {
public Object mapRow(ResultSet rs, int arg1) throws SQLException {
List<Students> list = new ArrayList<Students>();
try {
while (rs.next()) {
....................
}
而且异常指向的是这一行:
List<Students> list = jdbcTemplate.query(sql, new RowMapper() {谢谢 展开
List<Students> list = jdbcTemplate.query(sql, new RowMapper() {
public Object mapRow(ResultSet rs, int arg1) throws SQLException {
List<Students> list = new ArrayList<Students>();
try {
while (rs.next()) {
....................
}
而且异常指向的是这一行:
List<Students> list = jdbcTemplate.query(sql, new RowMapper() {谢谢 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询