保存进度!
This commit is contained in:
parent
01d76a9f21
commit
9bb3c0dd85
@ -1,12 +1,3 @@
|
|||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2025-03-16 00:35:09
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /cpicxim-huixiabao/.vscode/fileheader.template.js
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
/**
|
/**
|
||||||
* This file is generated by VSCode extension: Fileheader Pro
|
* This file is generated by VSCode extension: Fileheader Pro
|
||||||
*/
|
*/
|
||||||
|
@ -12,34 +12,81 @@ package com.cpic.xim.data.config;
|
|||||||
|
|
||||||
public class AppConfig
|
public class AppConfig
|
||||||
{
|
{
|
||||||
public static String getDrivername()
|
public static String getDrivernamemysql()
|
||||||
{
|
{
|
||||||
return driverName;
|
return driverNameMySQL;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getUrlproduct()
|
public static String getUrlproductmysql()
|
||||||
{
|
{
|
||||||
return urlProduct;
|
return urlProductMySQL;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getUrltest()
|
public static String getUrltestmysql()
|
||||||
{
|
{
|
||||||
return urlTest;
|
return urlTestMySQL;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getUsername()
|
public static String getUsernamemysql()
|
||||||
{
|
{
|
||||||
return userName;
|
return userNameMySQL;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getPassword()
|
public static String getPasswordmysql()
|
||||||
{
|
{
|
||||||
return password;
|
return passwordMySQL;
|
||||||
}
|
}
|
||||||
|
|
||||||
private final static String driverName = "com.mysql.cj.jdbc.Driver";
|
public static String getDrivernamegaussdb()
|
||||||
private final static String urlProduct = "jdbc:mysql://10.39.0.85:3306/huixiabao?useUnicode=true&characterEncoding=utf8&useSSL=true";
|
{
|
||||||
private final static String urlTest = "jdbc:mysql://10.39.0.84:3306/huixiabao?useUnicode=true&characterEncoding=utf8&useSSL=true";
|
return driverNameGaussDB;
|
||||||
private final static String userName = "huixiabao";
|
}
|
||||||
private final static String password = "Kane@1981";
|
|
||||||
|
public static String getUrlgaussdbproduct()
|
||||||
|
{
|
||||||
|
return urlGaussDBProduct;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getUsernamegaussdbproduct()
|
||||||
|
{
|
||||||
|
return userNameGaussDBProduct;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getPasswordgaussdbproduct()
|
||||||
|
{
|
||||||
|
return passwordGaussDBProduct;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getUrlgaussdbtest()
|
||||||
|
{
|
||||||
|
return urlGaussDBTest;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getUsernamegaussdbtest()
|
||||||
|
{
|
||||||
|
return userNameGaussDBTest;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getPasswordgaussdbtest()
|
||||||
|
{
|
||||||
|
return passwordGaussDBTest;
|
||||||
|
}
|
||||||
|
|
||||||
|
private final static String driverNameMySQL = "com.mysql.cj.jdbc.Driver";
|
||||||
|
private final static String urlProductMySQL = "jdbc:mysql://10.39.0.85:3306/huixiabao?useUnicode=true&characterEncoding=utf8&useSSL=true";
|
||||||
|
private final static String urlTestMySQL = "jdbc:mysql://10.39.0.84:3306/huixiabao?useUnicode=true&characterEncoding=utf8&useSSL=true";
|
||||||
|
private final static String userNameMySQL = "huixiabao";
|
||||||
|
private final static String passwordMySQL = "Kane@1981";
|
||||||
|
|
||||||
|
// 高斯数据库
|
||||||
|
private final static String driverNameGaussDB = "org.postgresql.Driver";
|
||||||
|
|
||||||
|
private final static String urlGaussDBProduct = "jdbc:postgresql://30.191.0.36:25308/qing";
|
||||||
|
private final static String userNameGaussDBProduct = "xim_ywglxt_app";
|
||||||
|
private final static String passwordGaussDBProduct = "qYldSdbfQ!o5M4M";
|
||||||
|
|
||||||
|
private final static String urlGaussDBTest = "jdbc:postgresql://10.182.2.208:25308/qing";
|
||||||
|
private final static String userNameGaussDBTest = "cx_xiamen";
|
||||||
|
private final static String passwordGaussDBTest = "aThK80#!";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,9 +46,9 @@ public class HuixiabaoDbUtils
|
|||||||
Class.forName( "com.mysql.cj.jdbc.Driver" );
|
Class.forName( "com.mysql.cj.jdbc.Driver" );
|
||||||
|
|
||||||
|
|
||||||
connection = DriverManager.getConnection( AppConfig.getUrltest(),
|
connection = DriverManager.getConnection( AppConfig.getUrltestmysql(),
|
||||||
AppConfig.getUsername(),
|
AppConfig.getUsernamemysql(),
|
||||||
AppConfig.getPassword() );
|
AppConfig.getPasswordmysql() );
|
||||||
statementDelete = connection.prepareStatement( sqlDelete.trim() );
|
statementDelete = connection.prepareStatement( sqlDelete.trim() );
|
||||||
statementInsert = connection.prepareStatement( sqlInsert.trim() );
|
statementInsert = connection.prepareStatement( sqlInsert.trim() );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user