public static Connection getconnector(){
    	if(conn != null){
    		return conn;
    	}
        // 加载驱动程序
        try {
			Class.forName(driver);
	        // 连续数据库
			conn = DriverManager.getConnection(url, user, password);
			System.out.println("Succeeded connecting to the Database!");
		} catch (SQLException e) {
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}

		return conn;
    }