From fa8f28cf848d2c3aeaa548a7ac65f93b690392c3 Mon Sep 17 00:00:00 2001 From: yuxc <yuxc@vci-tech.com> Date: 星期五, 23 八月 2024 10:19:35 +0800 Subject: [PATCH] 1、配置文件上传 --- Bin/properties/hibernate-slave.cfg.xml | 47 +++++++++++++++++++++++ Bin/properties/hibernate-master.cfg.xml | 48 ++++++++++++++++++++++++ Bin/properties/VolumnLog4j2.xml | 25 ++++++++++++ 3 files changed, 120 insertions(+), 0 deletions(-) diff --git a/Bin/properties/VolumnLog4j2.xml b/Bin/properties/VolumnLog4j2.xml new file mode 100644 index 0000000..a5bfc4d --- /dev/null +++ b/Bin/properties/VolumnLog4j2.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Configuration status="WARN"> + <Appenders> + <Console name="Console" target="SYSTEM_OUT"> + <PatternLayout pattern="[%-5p] %d{YYYY-MM-dd HH:mm:ss} [%t] %C{1}:%L - %msg%n" /> + </Console> + + <RollingFile name="RollingFile" filename="./logs/volume_log.log" filepattern="${logPath}/volume_%d{YYYYMMddHHmmss}.log"> + <PatternLayout pattern="[%-5p] %d{YYYY-MM-dd HH:mm:ss} [%t] %C{1}:%L - %msg%n" /> + <Policies> + <SizeBasedTriggeringPolicy size="10 MB" /> + </Policies> + <DefaultRolloverStrategy max="20" /> + </RollingFile> + + </Appenders> + <Loggers> + <Logger name="VolumeLog" level="DEBUG" additivity="true"> + <AppenderRef ref="RollingFile" /> + </Logger> + <Root level="DEBUG"> + <AppenderRef ref="Console" /> + </Root> + </Loggers> +</Configuration> diff --git a/Bin/properties/hibernate-master.cfg.xml b/Bin/properties/hibernate-master.cfg.xml new file mode 100644 index 0000000..f1269c1 --- /dev/null +++ b/Bin/properties/hibernate-master.cfg.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> +<hibernate-configuration> + <session-factory> + <property name="show_sql">true</property> + <property name="dialect">org.hibernate.dialect.OracleDialect</property> + <property name="connection.driver_class">oracle.jdbc.OracleDriver</property> + + <!--<property name="connection.url">jdbc:oracle:thin:@172.16.0.243:1521:orcl</property> + <property name="connection.username">vcimes</property> + <property name="connection.password">vcimes</property>--> + + <!-- <property name="connection.url">jdbc:oracle:thin:@dev.yunkeruida.top:1521:orcl</property> --> + <property name="connection.url">jdbc:oracle:thin:@192.168.0.66:1521:orcl</property> + <!-- <property name="connection.username">NMPM112</property> --> + <property name="connection.username">PLT2024</property> + <property name="connection.password">vcitest</property> + <!--<property name="connection.username">mpm112</property> + <property name="connection.password">vcitest</property>--> + + <!--property name="hibernate.connection.release_mode">auto</property --> + + <!-- 璁剧疆C3P0 --> + <property name="hibernate.connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> + <property name="hibernate.c3p0.acquireRetryAttempts">30</property> + <property name="hibernate.c3p0.acquireIncrement">2</property> + <property name="hibernate.c3p0.checkoutTimeout">30000</property> + <property name="hibernate.c3p0.idleConnectionTestPeriod">120</property> + <property name="hibernate.c3p0.maxIdleTime">180</property> + <property name="hibernate.c3p0.initialPoolSize">3</property> + <property name="hibernate.c3p0.maxPoolSize">100</property> + <property name="hibernate.c3p0.minPoolSize">1</property> + <property name="hibernate.c3p0.maxStatements">100</property> + <property name="maxStatementsPerConnection">100</property> + <property name="hibernate.current_session_context_class">com.vci.server.mw.SessionContext4JBPM</property> + <property name="hibernate.connection.isolation">2</property> + + + <!-- 鏆傛椂绂佺敤Hibernate鐨勪簨浠剁洃鍚� + <listener type="post-insert" + class="com.vci.base.server.persistence.history.HistoryListener" /> + <listener type="post-update" + class="com.vci.base.server.persistence.history.HistoryListener" /> + <listener type="post-delete" + class="com.vci.base.server.persistence.history.HistoryListener" /> + --> + </session-factory> +</hibernate-configuration> \ No newline at end of file diff --git a/Bin/properties/hibernate-slave.cfg.xml b/Bin/properties/hibernate-slave.cfg.xml new file mode 100644 index 0000000..96c62d7 --- /dev/null +++ b/Bin/properties/hibernate-slave.cfg.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> +<hibernate-configuration> + <session-factory> + <property name="show_sql">true</property> + <property name="dialect">org.hibernate.dialect.OracleDialect</property> + <property name="connection.driver_class">oracle.jdbc.OracleDriver</property> + + <!--<property name="connection.url">jdbc:oracle:thin:@172.16.0.243:1521:orcl</property> + <property name="connection.username">vcimes</property> + <property name="connection.password">vcimes</property>--> + + <property name="connection.url">jdbc:oracle:thin:@192.168.0.66:1521:orcl</property> + <!-- <property name="connection.url">jdbc:oracle:thin:@dev.yunkeruida.top:1521:orcl</property> --> + <!-- <property name="connection.username">NMPM112</property> --> + <property name="connection.username">PLT2024</property> + <property name="connection.password">vcitest</property> + <!--<property name="connection.username">mpm112</property> + <property name="connection.password">vcitest</property>--> + + <!--property name="hibernate.connection.release_mode">auto</property --> + + <!-- 璁剧疆C3P0 --> + <property name="hibernate.connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> + <property name="hibernate.c3p0.acquireRetryAttempts">30</property> + <property name="hibernate.c3p0.acquireIncrement">2</property> + <property name="hibernate.c3p0.checkoutTimeout">30000</property> + <property name="hibernate.c3p0.idleConnectionTestPeriod">120</property> + <property name="hibernate.c3p0.maxIdleTime">180</property> + <property name="hibernate.c3p0.initialPoolSize">3</property> + <property name="hibernate.c3p0.maxPoolSize">100</property> + <property name="hibernate.c3p0.minPoolSize">1</property> + <property name="hibernate.c3p0.maxStatements">100</property> + <property name="maxStatementsPerConnection">100</property> + <property name="hibernate.current_session_context_class">com.vci.server.mw.SessionContext4JBPM</property> + <property name="hibernate.connection.isolation">2</property> + + + <!-- 鏆傛椂绂佺敤Hibernate鐨勪簨浠剁洃鍚� + <listener type="post-insert" + class="com.vci.base.server.persistence.history.HistoryListener" /> + <listener type="post-update" + class="com.vci.base.server.persistence.history.HistoryListener" /> + <listener type="post-delete" + class="com.vci.base.server.persistence.history.HistoryListener" /> + --> + </session-factory> +</hibernate-configuration> \ No newline at end of file -- Gitblit v1.9.3