ZengTao
2024-05-13 ba604157629a79b6dd10d5d449eb6c05111bb3ef
springboot-vue3/src/main/java/com/example/springboot/service/JdbcConnections.java
@@ -466,12 +466,12 @@
   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