Sfoglia il codice sorgente

返回上个版本

wangsy 4 anni fa
parent
commit
f972ae68e3

+ 1 - 2
trans/src/main/java/com/lantone/qc/trans/util/http/db/DBUtil.java

@@ -21,8 +21,7 @@ public class DBUtil {
             //1.加载驱动程序
             Class.forName("com.mysql.jdbc.Driver");
             //2.获得数据库的连接
-//            connection = DriverManager.getConnection("jdbc:mysql://192.168.2.236:3306/sys-qctest?useUnicode=true&characterEncoding=UTF-8", "root", "lantone");
-            connection = DriverManager.getConnection("jdbc:mysql://192.168.2.122:3306/qc?useUnicode=true&characterEncoding=utf8&useSSL=false", "root", "lantone");
+            connection = DriverManager.getConnection("jdbc:mysql://192.168.2.236:3306/sys-qctest?useUnicode=true&characterEncoding=UTF-8", "root", "lantone");
         } catch (ClassNotFoundException e) {
             e.printStackTrace();
         } catch (SQLException e) {