刚才少了几行代码:
String user="sa";
String password="zz8122s";
try
{
conn= DriverManager.getConnection(url,user,password);
}
catch(Exception ex)
{
out.println(ex.toString());
System.err.println(ex.getMessage());
out.println("connection error");
}
String user="sa";
String password="zz8122s";
try
{
conn= DriverManager.getConnection(url,user,password);
}
catch(Exception ex)
{
out.println(ex.toString());
System.err.println(ex.getMessage());
out.println("connection error");
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货