public static Connection getConnection() {
		try {
			Class.forName("com.mysql.jdbc.Driver");
			String url = "jdbc:mysql://localhost:3306/diaocha?"
					+ "user=root&password=123&useUnicode=true&characterEncoding=utf-8";
			Connection conn = DriverManager.getConnection(url);
			return conn;
		} catch (Exception e) {
			System.out.print("数据库连接异常");
		}
		return null;
	}