严智鑫
2024-03-25 5fb507ab11cf9ac3d1bceae718bcb9bb50c37651
springboot-vue3/src/main/java/com/example/springboot/service/JdbcConnections.java
@@ -19,7 +19,7 @@
    * driver,url,username,password
    */
   private static final String DRIVER = "com.mysql.jdbc.Driver";
   private static final String URL = "jdbc:mysql://localhost:3306/canadames";
   private static final String URL = "jdbc:mysql://10.153.19.150:3306/canadames";
   private static final String USERNAME = "root";
   private static final String PASSWORD = "beibo.123/";
   
@@ -256,7 +256,7 @@
    */
   public static Connection getConn() throws SQLException {
      Connection conn = null;
      conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/canadames?serverTimezone=GMT%2B8&characterEncoding=utf-8", "root", "beibo.123/");
      conn = DriverManager.getConnection("jdbc:mysql://10.153.19.150:3306/canadames?serverTimezone=GMT%2B8&characterEncoding=utf-8", "root", "beibo.123/");
      return conn;
   }