| | |
| | | public static Connection getConn() throws SQLException { |
| | | try { |
| | | Connection conn = null; |
| | | // conn = |
| | | // DriverManager.getConnection("jdbc:mysql://localhost:3306/test?serverTimezone=GMT%2B8&characterEncoding=utf-8", |
| | | // "root", "beibo.123/"); |
| | | conn = DriverManager.getConnection( |
| | | "jdbc:mysql://192.168.102.9:3306/production?serverTimezone=GMT%2B8&characterEncoding=utf-8&useSSL=false", |
| | | "northglass", "n0rthgla55"); |
| | | conn = |
| | | DriverManager.getConnection("jdbc:mysql://localhost:3306/test?serverTimezone=GMT%2B8&characterEncoding=utf-8", |
| | | "root", "beibo.123/"); |
| | | // conn = DriverManager.getConnection( |
| | | // "jdbc:mysql://192.168.102.9:3306/production?serverTimezone=GMT%2B8&characterEncoding=utf-8&useSSL=false", |
| | | // "northglass", "n0rthgla55"); |
| | | return conn; |
| | | } catch (Exception e) { |
| | | // TODO: handle exception |