java中遇到异常Before start of result set

  加上

  if(rs.next()){

    rs.getString("name");

  }

  即可

原文地址:https://www.cnblogs.com/shiyingzhi/p/7439708.html