public Connection getCon() {
		if (con == null) {
			try {
				con = DriverManager.getConnection(url, user, password);
			} catch (SQLException e) {
				System.out.println("ݿʧܣ");
				con = null;
				e.printStackTrace();
			}
		}
		return con;
	}