Struts连接SQL2008的问题,windows验证登陆 默认用户名和密码是什么
安装SQL2008选择windows验证登陆,想用Struts连接数据库,代码如下:
public class Struts {
   protected String sDBDriver="com.microsoft.sqlserver.jdbc.SQLServerDriver";
   protected String URL="jdbc:sqlserver://localhost:1433;DatabaseName=Student";
   protected String User="sa";
   protected String Pwd="";
   protected Connection conn=null;
public Struts(){
try{
Class.forName(sDBDriver);
conn=DriverManager.getConnection(URL, User, Pwd);
}catch(ClassNotFoundException e){
e.printStackTrace();
}catch(SQLException e){
e.printStackTrace();
}
}
}
已经导入SQL驱动包了 有SQLException 估计是User,Pwd,URL什么的错了不知道默认的是什么啊