Authored by DengXinFei

mybatis回滚

... ... @@ -5,7 +5,7 @@
<parent>
<groupId>com.yoho</groupId>
<artifactId>yoho-starter</artifactId>
<version>1.0.4-SNAPSHOT</version>
<version>1.0.2-SNAPSHOT</version>
</parent>
<groupId>com.yoho.dsf</groupId>
<artifactId>yoho-unions</artifactId>
... ...
jdbc.mysql.driver=com.mysql.jdbc.Driver
#定义初始连接数
jdbc.mysql.initialSize=0
#定义最大连接数
jdbc.mysql.maxActive=80
#定义最大空闲
jdbc.mysql.maxIdle=60
#定义最小空闲
jdbc.mysql.minIdle=10
#定义最长等待时间
jdbc.mysql.maxWait=10000
jdbc.mysql.testWhileIdle=true
jdbc.mysql.timeBetweenEvictionRunsMillis=2000
jdbc.mysql.validationQuery=select 1
jdbc.mysql.testOnBorrow=true
jdbc.mysql.testOnReturn=true
#读操作是否只在从库
jdbc.mysql.readonlyinslave=false
#yoho_passport读写数据分离
jdbc.mysql.yohopassport.master.url=jdbc:mysql://192.168.50.69:9980/yoho_passport
jdbc.mysql.yohopassport.slave.url=jdbc:mysql://192.168.102.219:3306/yoho_passport
jdbc.mysql.yohopassport.username=yh_test
jdbc.mysql.yohopassport.password=yh_test
... ...
... ... @@ -21,6 +21,7 @@
</group>
<script>
<generate template="META-INF/autoconf/jdbc.properties" destfile="WEB-INF/classes/jdbc.properties" />
<generate template="META-INF/autoconf/config.properties" destfile="WEB-INF/classes/config.properties" />
<generate template="META-INF/autoconf/logback.xml" destfile="WEB-INF/classes/logback.xml" />
<generate template="META-INF/autoconf/services.yml" destfile="WEB-INF/classes/services.yml" />
... ...
jdbc.mysql.driver=com.mysql.jdbc.Driver
#定义初始连接数
jdbc.mysql.initialSize=0
#定义最大连接数
jdbc.mysql.maxActive=80
#定义最大空闲
jdbc.mysql.maxIdle=60
#定义最小空闲
jdbc.mysql.minIdle=10
#定义最长等待时间
jdbc.mysql.maxWait=10000
jdbc.mysql.testWhileIdle=true
jdbc.mysql.timeBetweenEvictionRunsMillis=2000
jdbc.mysql.validationQuery=select 1
jdbc.mysql.testOnBorrow=true
jdbc.mysql.testOnReturn=true
#读操作是否只在从库
jdbc.mysql.readonlyinslave=false
#yoho_passport读写数据分离
jdbc.mysql.yohopassport.master.url=${jdbc.mysql.yohopassport.master.url}
jdbc.mysql.yohopassport.slave.url=${jdbc.mysql.yohopassport.slave.url}
jdbc.mysql.yohopassport.username=${jdbc.mysql.yohopassport.username}
jdbc.mysql.yohopassport.password=${jdbc.mysql.yohopassport.password}
... ...
... ... @@ -3,7 +3,7 @@
<display-name>YohoBuy-Resources Service</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:META-INF/spring/spring-mybatis-datasource.xml, classpath*:META-INF/spring/spring*.xml</param-value>
<param-value>classpath*:META-INF/spring/spring*.xml</param-value>
</context-param>
<servlet>
<servlet-name>dispatcher</servlet-name>
... ...