public class JDBConnection { private final String url = "jdbc:jtds:sqlserver://192.168.100.91:1433/itzcgl"; private final String userName = "itzcgly"; private final String password = "itadmin#"; private Connection con = null; // 通过构造方法加载数据库驱动 static { try { Class.forName("net.sourceforge.