Unhandled exception type SQLException
两种解决方法,第一种:try{
while(rs.next())
{
System.out.println("id"+rs.getString(1));
System.out.println("name"+rs.getString(2));
}
}catch(Exception e)
{
}
用try,catch包含
第二种:throws SQLException一下