commit
						7bcc95e0d4
					
				| @ -1,119 +1,120 @@ | ||||
| #============================================================================================================= | ||||
| # MySQL | ||||
| #============================================================================================================= | ||||
| # 驱动程序 | ||||
| jdbc.mysql.driver=com.mysql.jdbc.Driver | ||||
| # 连接url | ||||
| 
 | ||||
| jdbc.mysql.url=jdbc:mysql://192.168.0.110:3306/ftpdata?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&autoReconnect=true&failOverReadOnly=false | ||||
| 
 | ||||
| # 用户名 | ||||
| jdbc.mysql.username=root | ||||
| # 密码 | ||||
| jdbc.mysql.password=root | ||||
| 
 | ||||
| #============================================================================================================= | ||||
| # Oracle 连接配置 | ||||
| #============================================================================================================= | ||||
| # hui用户名 | ||||
| gather-user-name=system | ||||
| gather-standard-user-name=u_bzbjy | ||||
| gather-standard-exec-table-name=kzxzb | ||||
| gather-standard-pay-table-name=zfxxb | ||||
| # 密码 | ||||
| gather-user-password=oracle | ||||
| 
 | ||||
| # | ||||
| gather-port=1521 | ||||
| # | ||||
| gather-service-name=orcl | ||||
| #============================================================================================================= | ||||
| # 数据库公共配置 | ||||
| #============================================================================================================= | ||||
| jdbc.initialSize=5 | ||||
| jdbc.minIdle=5 | ||||
| jdbc.maxIdle=20 | ||||
| jdbc.maxActive=100 | ||||
| jdbc.maxWait=100000 | ||||
| jdbc.defaultAutoCommit=false | ||||
| jdbc.removeAbandoned=true | ||||
| jdbc.removeAbandonedTimeout=600 | ||||
| jdbc.testWhileIdle=true | ||||
| jdbc.timeBetweenEvictionRunsMillis=60000 | ||||
| jdbc.numTestsPerEvictionRun=20 | ||||
| jdbc.minEvictableIdleTimeMillis=300000 | ||||
| #============================================================================================================== | ||||
| # | ||||
| #============================================================================================================== | ||||
| table-suffix=_20152016 | ||||
| 
 | ||||
| gather-tablespace-name=TS_TTSSS | ||||
| 
 | ||||
| #dbf file's path              must exist | ||||
| gather-tablespace-path=/opt/oracle/app/oradata/orcl/ | ||||
| # user's password     must  exist | ||||
| gather-table-user-password=user | ||||
| 
 | ||||
| #kuber's url   must exist | ||||
| kubeMasterUrl=http://192.168.0.110:8080/ | ||||
| kubeMasterAddress=192.168.0.110:8080 | ||||
| 
 | ||||
| collect-user-name=system | ||||
| collect-password=oracle | ||||
| collect-service-name=orcl | ||||
| # standard table :   | ||||
| # eg:sql ->  select count(*) from u_bzbjy.kzxzb;  select count(*) from u_bzbjy.zfxxb; | ||||
| collect-user-table=U_BZBJY | ||||
| collect-exec-table=KZXZB | ||||
| collect-pay-table=ZFXXB | ||||
| #gfs web's IP | ||||
| gfs_control_ip=192.168.0.110 | ||||
| #gfs web password of root | ||||
| gfs_control_rootPassWd=root | ||||
| #url of gfs web | ||||
| HttpClientConstant_URL_IP_PORT=http://192.168.0.110:9001/ | ||||
| #data between 6 month ago and now | ||||
| dataBefore=6 | ||||
| #move a data once | ||||
| moveFileMaxNum=1 | ||||
| #import 5 rows of Excel once | ||||
| numOneImportExcel=5 | ||||
| oracle-orcl=orcl | ||||
| oracle-user=system | ||||
| oracle-psw=oracle | ||||
| 
 | ||||
| #============================================================================================================= | ||||
| # windows path | ||||
| #============================================================================================================= | ||||
| 
 | ||||
| extract-log-localtion=D:\\test\\log\\ | ||||
| extract-standard-log-localtion=D:\\test\\log2\\ | ||||
| 
 | ||||
| file_upload_path=D:\\test\\ | ||||
| file_download_path=D:\\test\\export.xlsx | ||||
| 
 | ||||
| package_download_path=D:\\test\\ | ||||
| package_name=sql_script_standard | ||||
| 
 | ||||
| sql_script_path_last=D:\\test\\sql_script_last\\ | ||||
| sql_script_path_standard=D:\\test\\sql_script_standard\\ | ||||
| 
 | ||||
| #============================================================================================================= | ||||
| # linux path | ||||
| #============================================================================================================= | ||||
| ## extract's log file location | ||||
| #extract-log-localtion=/home/web_manage/log/ | ||||
| ## standard extract's log file location | ||||
| #extract-standard-log-localtion=/home/web_manage/log2/ | ||||
| ##import excel file's location | ||||
| #file_upload_path=/excel_import_dir/ | ||||
| ##export excel file's location | ||||
| #file_download_path=/excel_export_dir/export.xlsx | ||||
| ##file package download's location | ||||
| #package_download_path=/ | ||||
| ##file package's name | ||||
| #package_name=DefaultDescription | ||||
| ##location of sql script lastest | ||||
| #sql_script_path_last=/DefaultDescription_last/ | ||||
| ##location of sql script standard | ||||
| #sql_script_path_standard=/DefaultDescription/ | ||||
| #============================================================================================================= | ||||
| # MySQL | ||||
| #============================================================================================================= | ||||
| # 驱动程序 | ||||
| jdbc.mysql.driver=com.mysql.jdbc.Driver | ||||
| # 连接url | ||||
| 
 | ||||
| jdbc.mysql.url=jdbc:mysql://192.168.0.110:3306/ftpdata?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&autoReconnect=true&failOverReadOnly=false | ||||
| 
 | ||||
| # 用户名 | ||||
| jdbc.mysql.username=root | ||||
| # 密码 | ||||
| jdbc.mysql.password=root | ||||
| 
 | ||||
| #============================================================================================================= | ||||
| # Oracle 连接配置 | ||||
| #============================================================================================================= | ||||
| # hui用户名 | ||||
| gather-user-name=system | ||||
| gather-standard-user-name=u_bzbjy | ||||
| gather-standard-exec-table-name=kzxzb | ||||
| gather-standard-pay-table-name=zfxxb | ||||
| # 密码 | ||||
| gather-user-password=oracle | ||||
| 
 | ||||
| # | ||||
| gather-port=1521 | ||||
| # | ||||
| gather-service-name=orcl | ||||
| #============================================================================================================= | ||||
| # 数据库公共配置 | ||||
| #============================================================================================================= | ||||
| jdbc.initialSize=5 | ||||
| jdbc.minIdle=5 | ||||
| jdbc.maxIdle=20 | ||||
| jdbc.maxActive=100 | ||||
| jdbc.maxWait=100000 | ||||
| jdbc.defaultAutoCommit=false | ||||
| jdbc.removeAbandoned=true | ||||
| jdbc.removeAbandonedTimeout=600 | ||||
| jdbc.testWhileIdle=true | ||||
| jdbc.timeBetweenEvictionRunsMillis=60000 | ||||
| jdbc.numTestsPerEvictionRun=20 | ||||
| jdbc.minEvictableIdleTimeMillis=300000 | ||||
| #============================================================================================================== | ||||
| # | ||||
| #============================================================================================================== | ||||
| table-suffix=_20152016 | ||||
| 
 | ||||
| gather-tablespace-name=TS_TTSSS | ||||
| 
 | ||||
| #dbf file's path              must exist | ||||
| gather-tablespace-path=/opt/oracle/app/oradata/orcl/ | ||||
| # user's password     must  exist | ||||
| gather-table-user-password=user | ||||
| 
 | ||||
| #kuber's url   must exist | ||||
| kubeMasterUrl=http://192.168.0.110:8080/ | ||||
| 
 | ||||
| kubeMasterAddress=192.168.0.110:8080 | ||||
| 
 | ||||
| collect-user-name=system | ||||
| collect-password=oracle | ||||
| collect-service-name=orcl | ||||
| # standard table :   | ||||
| # eg:sql ->  select count(*) from u_bzbjy.kzxzb;  select count(*) from u_bzbjy.zfxxb; | ||||
| collect-user-table=U_BZBJY | ||||
| collect-exec-table=KZXZB | ||||
| collect-pay-table=ZFXXB | ||||
| #gfs web's IP | ||||
| gfs_control_ip=192.168.0.110 | ||||
| #gfs web password of root | ||||
| gfs_control_rootPassWd=root | ||||
| #url of gfs web | ||||
| HttpClientConstant_URL_IP_PORT=http://192.168.0.110:9001/ | ||||
| #data between 6 month ago and now | ||||
| dataBefore=6 | ||||
| #move a data once | ||||
| moveFileMaxNum=1 | ||||
| #import 5 rows of Excel once | ||||
| numOneImportExcel=5 | ||||
| oracle-orcl=orcl | ||||
| oracle-user=system | ||||
| oracle-psw=oracle | ||||
| 
 | ||||
| #============================================================================================================= | ||||
| # windows path | ||||
| #============================================================================================================= | ||||
| 
 | ||||
| extract-log-localtion=D:\\test\\log\\ | ||||
| extract-standard-log-localtion=D:\\test\\log2\\ | ||||
| 
 | ||||
| file_upload_path=D:\\test\\ | ||||
| file_download_path=D:\\test\\export.xlsx | ||||
| 
 | ||||
| package_download_path=D:\\test\\ | ||||
| package_name=sql_script_standard | ||||
| 
 | ||||
| sql_script_path_last=D:\\test\\sql_script_last\\ | ||||
| sql_script_path_standard=D:\\test\\sql_script_standard\\ | ||||
| 
 | ||||
| #============================================================================================================= | ||||
| # linux path | ||||
| #============================================================================================================= | ||||
| ## extract's log file location | ||||
| #extract-log-localtion=/home/web_manage/log/ | ||||
| ## standard extract's log file location | ||||
| #extract-standard-log-localtion=/home/web_manage/log2/ | ||||
| ##import excel file's location | ||||
| #file_upload_path=/excel_import_dir/ | ||||
| ##export excel file's location | ||||
| #file_download_path=/excel_export_dir/export.xlsx | ||||
| ##file package download's location | ||||
| #package_download_path=/ | ||||
| ##file package's name | ||||
| #package_name=DefaultDescription | ||||
| ##location of sql script lastest | ||||
| #sql_script_path_last=/DefaultDescription_last/ | ||||
| ##location of sql script standard | ||||
| #sql_script_path_standard=/DefaultDescription/ | ||||
|  | ||||
| @ -1,129 +1,130 @@ | ||||
| package com.platform.utils; | ||||
| 
 | ||||
| import org.apache.log4j.Logger; | ||||
| 
 | ||||
| /** 配置启动 变量 | ||||
|  * @author chen | ||||
|  * | ||||
|  */ | ||||
| public class Configs { | ||||
| 	 | ||||
| 	/** 全局自定义异常--编码  */ | ||||
| 	public static final String GLOBAL_EXP_CUSTOM = "3001001001"; | ||||
| 	 | ||||
| 	/** 全局非自定义异常--编码  */ | ||||
| 	public static final String GLOBAL_EXP_NOT_CUSTOM = "3001001002"; | ||||
| 	 | ||||
| 	public static final String CONFIG_LOCALTION = "WebContent/WEB-INF/config/config.properties"; | ||||
| 
 | ||||
| 	public static final Logger CONSOLE_LOGGER = Logger.getLogger("console"); | ||||
| 
 | ||||
| 	public static final Logger DAILY_ROLLING_LOGGER = Logger | ||||
| 			.getLogger("dailyRollingFile"); | ||||
| 
 | ||||
| 	public static final Logger DAILY_LOGGER = Logger.getLogger("railyFile"); | ||||
| 
 | ||||
| 	public static final Logger LOGGER = Logger.getLogger(Configs.class); | ||||
| 
 | ||||
| 	public static String KUBE_MASTER_URL = "http://192.168.0.110:8080/"; // kubernetes集群的maser
 | ||||
| 																			// URl
 | ||||
| 	 | ||||
| 	public static String KUBE_MASTER_ADDRESS="127.0.0.1:8080"; | ||||
| 
 | ||||
| 	public static int ORACLE_DEFAULT_PORT = 1521; // oracle的默认端口号
 | ||||
| 
 | ||||
| 	public static String COLLECT_USER_NAME = "system"; //采集统一的登入用户名
 | ||||
| 
 | ||||
| 	public static String COLLECT_PASSWORD = "oracle"; //采集统一的登入密码
 | ||||
| 
 | ||||
| 	public static String COLLECT_SERVICE_NAME = "orcl"; //采集库统一的服务名
 | ||||
| 	 | ||||
| 	public static String GATHER_PORT ="1521"; //汇总库的端口号
 | ||||
| 	 | ||||
| 	public static String GATHER_USER_NAME = "system"; //汇总库的登入用户名
 | ||||
| 	 | ||||
| 	public static String GATHER_USER_PASSWORD = "1"; //汇总库的登入密码
 | ||||
| 	 | ||||
| 	/** 抽取标准表 的 标准表所在 用户 */ | ||||
| 	public static String GATHER_STANDARD_USER_NAME = "u_bzbjy"; | ||||
| 	 | ||||
| 	/** 可执行表名  */ | ||||
| 	public static String GATHER_STANDARD_EXEC_TABLE_NAME = "kzxzb"; | ||||
| 	 | ||||
| 	/** 可支付表名  */ | ||||
| 	public static String GATHER_STANDARD_PAY_TABLE_NAME = "zfxxb"; | ||||
| 	 | ||||
| 	public static String GATHER_SERVICE_NAME = "orcl"; //汇总库的服务名
 | ||||
| 	 | ||||
| 	public static String TABLE_SUFFIX = "_20152016";  //汇总库汇总表的后缀名	
 | ||||
| 	 | ||||
| 	public static String EXTRACT_LOG_LOCALTION = "D:\\log"; //数据汇总日志保存位置
 | ||||
| 	 | ||||
| 	public static String EXTRACT_STANDARD_LOG_LOCALTION = "D:\\log2"; //数据抽取日志保存位置
 | ||||
| 	 | ||||
| 	public static String GATHER_TABLESPACE_NAME=""; //表空间名
 | ||||
| 	 | ||||
| 	public static String GATHER_TABLESPACE_PATH=""; //表空间路径
 | ||||
| 	 | ||||
| 	public static String GATHER_TABLE_PASSWORD="1"; //登入密码
 | ||||
| 	 | ||||
| 	/** excel上传路径 */ | ||||
| 	public static String FILE_UPLOAD_PATH=""; | ||||
| 	 | ||||
| 	/** excel下载路经 */ | ||||
| 	public static String FILE_DOWNLOAD_PATH="";	 | ||||
| 
 | ||||
| 	/** 包下载路径 */ | ||||
| 	public static String PACKAGE_DOWNLOAD_PATH=""; | ||||
| 	 | ||||
| 	/** 下载包名  */ | ||||
| 	public static String PACKAGE_NAME=""; | ||||
| 
 | ||||
| 	/** | ||||
| 	 * 最新脚本的位置 | ||||
| 	 */ | ||||
| 	public static String SQL_SCRIPT_PATH_LAST="D:\\test\\sql_script_last\\"; | ||||
| 	/**  归档脚本的位置  */ | ||||
| 	public static String SQL_SCRIPT_PATH_STANDARD="D:\\test\\sql_script_standard\\"; | ||||
| 	 | ||||
| 	/** | ||||
| 	 * 多少 个月前的数据 | ||||
| 	 */ | ||||
| 	public static int dataBefore = 6; | ||||
| 	 | ||||
| 	/** | ||||
| 	 * excel导入一次批量导入5个 | ||||
| 	 */ | ||||
| 	public static int NUM_ONE_IMPORT_EXCEL = 5; | ||||
| 	 | ||||
| 	/** | ||||
| 	 *  docker启动的 oracle服务 的 实例名称 | ||||
| 	 */ | ||||
| 	public static String ORACLE_ORCL = "orcl"; | ||||
| 	 | ||||
| 	/** | ||||
| 	 *  docker启动的 oracle服务 的 实例登陆用户名 | ||||
| 	 */ | ||||
| 	public static String ORACLE_USER = "system"; | ||||
| 	 | ||||
| 	/** | ||||
| 	 *  docker启动的 oracle服务 的 实例登陆密码 | ||||
| 	 */ | ||||
| 	public static String ORACLE_PSW = "oracle"; | ||||
| 	 | ||||
| 	/** | ||||
| 	 *  采集库中的 标准表所在 的 用户 | ||||
| 	 */ | ||||
| 	public static String COLLECT_STANDARD_TABLE_USER = "u_bzbjy"; | ||||
| 	 | ||||
| 	/** | ||||
| 	 *  可执行的  标准表的 名 | ||||
| 	 */ | ||||
| 	public static String COLLECT_EXEC_TABLE = "kzxzb"; | ||||
| 	 | ||||
| 	/** | ||||
| 	 *  支付的  标准表的 名 | ||||
| 	 */ | ||||
| 	public static String COLLECT_PAY_TABLE = "zfxxb"; | ||||
| 	 | ||||
| } | ||||
| package com.platform.utils; | ||||
| 
 | ||||
| import org.apache.log4j.Logger; | ||||
| 
 | ||||
| /** 配置启动 变量 | ||||
|  * @author chen | ||||
|  * | ||||
|  */ | ||||
| public class Configs { | ||||
| 	 | ||||
| 	/** 全局自定义异常--编码  */ | ||||
| 	public static final String GLOBAL_EXP_CUSTOM = "3001001001"; | ||||
| 	 | ||||
| 	/** 全局非自定义异常--编码  */ | ||||
| 	public static final String GLOBAL_EXP_NOT_CUSTOM = "3001001002"; | ||||
| 	 | ||||
| 	public static final String CONFIG_LOCALTION = "WebContent/WEB-INF/config/config.properties"; | ||||
| 
 | ||||
| 	public static final Logger CONSOLE_LOGGER = Logger.getLogger("console"); | ||||
| 
 | ||||
| 	public static final Logger DAILY_ROLLING_LOGGER = Logger | ||||
| 			.getLogger("dailyRollingFile"); | ||||
| 
 | ||||
| 	public static final Logger DAILY_LOGGER = Logger.getLogger("railyFile"); | ||||
| 
 | ||||
| 	public static final Logger LOGGER = Logger.getLogger(Configs.class); | ||||
| 
 | ||||
| 	public static String KUBE_MASTER_URL = "http://192.168.0.110:8080/"; // kubernetes集群的maser
 | ||||
| 																			// URl
 | ||||
| 	 | ||||
| 	public static String KUBE_MASTER_ADDRESS="127.0.0.1:8080"; | ||||
| 
 | ||||
| 
 | ||||
| 	public static int ORACLE_DEFAULT_PORT = 1521; // oracle的默认端口号
 | ||||
| 
 | ||||
| 	public static String COLLECT_USER_NAME = "system"; //采集统一的登入用户名
 | ||||
| 
 | ||||
| 	public static String COLLECT_PASSWORD = "oracle"; //采集统一的登入密码
 | ||||
| 
 | ||||
| 	public static String COLLECT_SERVICE_NAME = "orcl"; //采集库统一的服务名
 | ||||
| 	 | ||||
| 	public static String GATHER_PORT ="1521"; //汇总库的端口号
 | ||||
| 	 | ||||
| 	public static String GATHER_USER_NAME = "system"; //汇总库的登入用户名
 | ||||
| 	 | ||||
| 	public static String GATHER_USER_PASSWORD = "1"; //汇总库的登入密码
 | ||||
| 	 | ||||
| 	/** 抽取标准表 的 标准表所在 用户 */ | ||||
| 	public static String GATHER_STANDARD_USER_NAME = "u_bzbjy"; | ||||
| 	 | ||||
| 	/** 可执行表名  */ | ||||
| 	public static String GATHER_STANDARD_EXEC_TABLE_NAME = "kzxzb"; | ||||
| 	 | ||||
| 	/** 可支付表名  */ | ||||
| 	public static String GATHER_STANDARD_PAY_TABLE_NAME = "zfxxb"; | ||||
| 	 | ||||
| 	public static String GATHER_SERVICE_NAME = "orcl"; //汇总库的服务名
 | ||||
| 	 | ||||
| 	public static String TABLE_SUFFIX = "_20152016";  //汇总库汇总表的后缀名	
 | ||||
| 	 | ||||
| 	public static String EXTRACT_LOG_LOCALTION = "D:\\log"; //数据汇总日志保存位置
 | ||||
| 	 | ||||
| 	public static String EXTRACT_STANDARD_LOG_LOCALTION = "D:\\log2"; //数据抽取日志保存位置
 | ||||
| 	 | ||||
| 	public static String GATHER_TABLESPACE_NAME=""; //表空间名
 | ||||
| 	 | ||||
| 	public static String GATHER_TABLESPACE_PATH=""; //表空间路径
 | ||||
| 	 | ||||
| 	public static String GATHER_TABLE_PASSWORD="1"; //登入密码
 | ||||
| 	 | ||||
| 	/** excel上传路径 */ | ||||
| 	public static String FILE_UPLOAD_PATH=""; | ||||
| 	 | ||||
| 	/** excel下载路经 */ | ||||
| 	public static String FILE_DOWNLOAD_PATH="";	 | ||||
| 
 | ||||
| 	/** 包下载路径 */ | ||||
| 	public static String PACKAGE_DOWNLOAD_PATH=""; | ||||
| 	 | ||||
| 	/** 下载包名  */ | ||||
| 	public static String PACKAGE_NAME=""; | ||||
| 
 | ||||
| 	/** | ||||
| 	 * 最新脚本的位置 | ||||
| 	 */ | ||||
| 	public static String SQL_SCRIPT_PATH_LAST="D:\\test\\sql_script_last\\"; | ||||
| 	/**  归档脚本的位置  */ | ||||
| 	public static String SQL_SCRIPT_PATH_STANDARD="D:\\test\\sql_script_standard\\"; | ||||
| 	 | ||||
| 	/** | ||||
| 	 * 多少 个月前的数据 | ||||
| 	 */ | ||||
| 	public static int dataBefore = 6; | ||||
| 	 | ||||
| 	/** | ||||
| 	 * excel导入一次批量导入5个 | ||||
| 	 */ | ||||
| 	public static int NUM_ONE_IMPORT_EXCEL = 5; | ||||
| 	 | ||||
| 	/** | ||||
| 	 *  docker启动的 oracle服务 的 实例名称 | ||||
| 	 */ | ||||
| 	public static String ORACLE_ORCL = "orcl"; | ||||
| 	 | ||||
| 	/** | ||||
| 	 *  docker启动的 oracle服务 的 实例登陆用户名 | ||||
| 	 */ | ||||
| 	public static String ORACLE_USER = "system"; | ||||
| 	 | ||||
| 	/** | ||||
| 	 *  docker启动的 oracle服务 的 实例登陆密码 | ||||
| 	 */ | ||||
| 	public static String ORACLE_PSW = "oracle"; | ||||
| 	 | ||||
| 	/** | ||||
| 	 *  采集库中的 标准表所在 的 用户 | ||||
| 	 */ | ||||
| 	public static String COLLECT_STANDARD_TABLE_USER = "u_bzbjy"; | ||||
| 	 | ||||
| 	/** | ||||
| 	 *  可执行的  标准表的 名 | ||||
| 	 */ | ||||
| 	public static String COLLECT_EXEC_TABLE = "kzxzb"; | ||||
| 	 | ||||
| 	/** | ||||
| 	 *  支付的  标准表的 名 | ||||
| 	 */ | ||||
| 	public static String COLLECT_PAY_TABLE = "zfxxb"; | ||||
| 	 | ||||
| } | ||||
|  | ||||
					Loading…
					
					
				
		Reference in new issue