872263c8 陈志杭(后端)

初始化

1 个父辈 edf1afdd
正在显示 1000 个修改的文件 包含 0 行增加480 行删除

要显示的修改太多。

为保证性能只显示 1000 of 1000+ 个文件。

1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context"
5 xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx"
6 xmlns:aop="http://www.springframework.org/schema/aop"
7 xsi:schemaLocation="
8 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
9 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
10 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
11
12 <!-- <description>定时任务调度配置</description> -->
13
14 <bean id="jobInvokeBean" class="com.sibu.orderHelper.integralWeb.quart.ScheduleTask"></bean>
15
16 <bean id="generateRoomStock"
17 class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
18 <property name="targetObject" ref="jobInvokeBean"/>
19 <property name="targetMethod" value="generateRoomStock"/>
20 <property name="concurrent" value="false"/>
21 </bean>
22
23
24 <bean id="generateRoomStockCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
25 <property name="jobDetail" ref="generateRoomStock"/>
26 <property name="cronExpression" value="0 0/30 9-10 * * ?"/>
27 </bean>
28
29 <!-- 定时发送入住前通知短信 -->
30 <bean id="sendCheckinNoticeMessage"
31 class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
32 <property name="targetObject" ref="jobInvokeBean"/>
33 <property name="targetMethod" value="sendCheckinHotelNoticeMessage"/>
34 <property name="concurrent" value="false"/>
35 </bean>
36
37 <bean id="sendCheckinNoticeMessageCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
38 <property name="jobDetail" ref="sendCheckinNoticeMessage"/>
39 <property name="cronExpression" value="0 0 8 * * ?"/>
40 </bean>
41
42 <!-- 退款订单(仅退款,退全款),不同意退款状态超过3天时间, 自动关闭退单,并恢复订单原来流程状态 -->
43 <bean id="autoCloseRefundMoneyOrderTypeAndDisagreeRefundMoneyStatusOrderTaskCronTrigger"
44 class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
45 <property name="jobDetail">
46 <bean class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
47 <property name="targetObject" ref="autoCloseRefundMoneyOrderTypeAndDisagreeRefundMoneyStatusOrderTaskImpl"/>
48 <property name="targetMethod" value="execute"/>
49 <property name="concurrent" value="false"/>
50 </bean>
51 </property>
52 <property name="cronExpression" value="0 0/15 * * * ? *"/>
53 </bean>
54 <!-- 退款退货订单,不同意退款状态,超过7天时间,自动关闭退单,并恢复订单原来流程状态 -->
55 <bean id="autoCloseRefundMoneyAndGoodsOrderTypeAndDisagreeRefundMoneyStatusOrderTaskCronTrigger"
56 class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
57 <property name="jobDetail">
58 <bean class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
59 <property name="targetObject" ref="autoCloseRefundMoneyAndGoodsOrderTypeAndDisagreeRefundMoneyStatusOrderTaskImpl"/>
60 <property name="targetMethod" value="execute"/>
61 <property name="concurrent" value="false"/>
62 </bean>
63 </property>
64 <property name="cronExpression" value="0 0/15 * * * ? *"/>
65 </bean>
66 <!-- 退款退货订单,不同意退货状态,超过7天时间,自动关闭退单,并恢复订单原来流程状态 -->
67 <bean id="autoCloseRefundMoneyAndGoodsOrderTypeAndDisagreeRefundGoodsStatusOrderTaskCronTrigger"
68 class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
69 <property name="jobDetail">
70 <bean class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
71 <property name="targetObject" ref="autoCloseRefundMoneyAndGoodsOrderTypeAndDisagreeRefundGoodsStatusOrderTaskImpl"/>
72 <property name="targetMethod" value="execute"/>
73 <property name="concurrent" value="false"/>
74 </bean>
75 </property>
76 <property name="cronExpression" value="0 0/15 * * * ? *"/>
77 </bean>
78
79 <!-- 定时更新订单结算时间 -->
80 <bean id="settlementAmount"
81 class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
82 <property name="targetObject" ref="jobInvokeBean"/>
83 <property name="targetMethod" value="settlementAmount" />
84 <property name="concurrent" value="false" />
85 </bean>
86
87
88 <bean id="settlementAmountCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
89 <property name="jobDetail" ref="settlementAmount" />
90 <property name="cronExpression" value="0 0 0 20 * ?" />
91 </bean>
92
93 <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
94 <property name="triggers">
95 <list>
96 <ref bean="generateRoomStockCronTrigger"/>
97 <ref bean="sendCheckinNoticeMessageCronTrigger"/>
98 <ref bean="settlementAmountCronTrigger" />
99 <!--<ref bean="autoCloseRefundMoneyOrderTypeAndDisagreeRefundMoneyStatusOrderTaskCronTrigger"/>-->
100 <!--<ref bean="autoCloseRefundMoneyAndGoodsOrderTypeAndDisagreeRefundMoneyStatusOrderTaskCronTrigger"/>-->
101 <!--<ref bean="autoCloseRefundMoneyAndGoodsOrderTypeAndDisagreeRefundGoodsStatusOrderTaskCronTrigger"/>-->
102
103 </list>
104 </property>
105 </bean>
106 </beans>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
4 xsi:schemaLocation="http://www.springframework.org/schema/beans
5 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
6 http://www.springframework.org/schema/context
7 http://www.springframework.org/schema/context/spring-context-2.5.xsd"
8 >
9
10 <!-- sms start -->
11 <bean id="taobaoClient" class="com.taobao.api.DefaultTaobaoClient">
12 <constructor-arg value="${sms.serverUrl}"></constructor-arg>
13 <constructor-arg value="${sms.appKey}"></constructor-arg>
14 <constructor-arg value="${sms.appSecret}"></constructor-arg>
15 <constructor-arg value="${sms.format}"></constructor-arg>
16 <constructor-arg value="${sms.connectTimeout}"></constructor-arg>
17 <constructor-arg value="${sms.readTimeout}"></constructor-arg>
18 </bean>
19 <bean class="com.sibu.orderHelper.common.util.SmsUtil">
20 <property name="taobaoClient" ref="taobaoClient"/>
21 <property name="enable" value="${sms.enable}"/>
22 </bean>
23
24 <!-- sms end -->
25 </beans>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
4 xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context"
5 xsi:schemaLocation="http://www.springframework.org/schema/beans
6 http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
7 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
8 http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
9 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"
10 >
11 <context:property-placeholder
12 location="classpath:META-INF/conf/jdbc.properties,classpath:META-INF/conf/mq.properties,classpath:META-INF/conf/sms.properties" ignore-unresolvable="true"/>
13 <bean id="redisResources"
14 class="org.springframework.beans.factory.config.PropertiesFactoryBean">
15 <property name="location" value="classpath:META-INF/conf/connect-redis.properties" />
16 </bean>
17 <!-- <bean id="fastDbResource"
18 class="com.sibu.common.util.ResouceUtils">
19 <property name="fastDbResource" value="classpath:test_fdfs_client.conf" />
20 </bean> -->
21 <!-- 参数值路径 -->
22 <bean id="valuesProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
23 <property name="location" value="classpath:META-INF/conf/values.properties"/>
24 </bean>
25 <!-- 卡夫卡 -->
26 <!-- 消费
27 <bean id="kafkaConsumerProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
28 <property name="location" value="classpath:META-INF/test_conf/test_kafka-consumer.properties"/>
29 </bean>-->
30 <!-- 生产
31 <bean id="kafkaProducerProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
32 <property name="location" value="classpath:META-INF/test_conf/test_kafka-producer.properties"/>
33 </bean> -->
34 </beans>
35
1 #redis连接
2 address1=120.76.137.184:6379
3 address2=120.76.137.184:6380
4 address3=120.24.234.38:6379
5 address4=120.24.234.38:6380
6 address5=120.24.65.223:6379
7 address6=120.24.65.223:6380
8 maxRedirections=6
...\ No newline at end of file ...\ No newline at end of file
1 connect_timeout = 3
2 network_timeout =50
3 charset = UTF-8
4 http.tracker_http_port = 80
5 http.anti_steal_token = no
6 http.secret_key = FastDFS1234567890
7 tracker_server = 120.76.137.184:22122
8 tracker_server = 120.24.234.38:22122
9 tracker_server = 120.24.65.223:22122
10
1 #数据库驱动
2 jdbc.driverClassName=com.mysql.jdbc.Driver
3 sqlserverjdbc.driverClassName=net.sourceforge.jtds.jdbc.Driver
4
5 #数据库url
6 jdbc.url=jdbc:mysql://120.76.137.184/sibu_wesale_base?useUnicode=true&characterEncoding=utf8
7 jdbc.imtegralurl=jdbc:mysql://120.76.137.184/sibu_integralmall_base?useUnicode=true&characterEncoding=utf8
8 sqlserverjdbc.url=jdbc\:jtds\:sqlserver\://120.25.75.53\:1433;databaseName\=sibu_wesale_base_read_03
9
10 #数据库用户名
11 jdbc.username=root
12 sqlserverjdbc.username=sa
13 jdbc.imtegralusername=root
14
15 #数据库密码
16 jdbc.password=Aa123456
17 sqlserverjdbc.password=SiBu@SAPtong_855
18 jdbc.imtegralpassword=Aa123456
19
20 ######## 主库数据源配置 start ###########
21 #配置初始化大小、最小、最大
22 jdbc.initialSize=5
23 jdbc.minIdle=5
24 jdbc.maxActive=20
25 #配置获取连接等待超时的时间 毫秒
26 jdbc.maxWait=60000
27 #配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
28 jdbc.timeBetweenEvictionRunsMillis=60000
29 #配置一个连接在池中最小生存的时间,单位是毫秒
30 jdbc.minEvictableIdleTimeMillis=300000
31 #连接池为了防止程序从池里取得连接后忘记归还的情况,
32 #而提供了一些参数来设置一个租期,
33 #使用这个可以在一定程度上防止连接泄漏
34 jdbc.removeAbandoned=true
35 #单位是秒
36 jdbc.removeAbandonedTimeout=1800
37 jdbc.validationQuery=SELECT 'x' FROM DUAL
38 jdbc.testWhileIdle=true
39 jdbc.testOnBorrow=false
40 jdbc.testOnReturn=false
41 #是否自动提交事务
42 jdbc.defaultAutoCommit=false
43 #打开PSCache(除了Oracle外,建议其他都设置为false)
44 #并且指定每个连接上PSCache的大小
45 jdbc.poolPreparedStatements=false
46 jdbc.maxPoolPreparedStatementPerConnectionSize=20
47 #配置监控统计拦截的filters
48 #jdbc.filters=stat,wall,slf4j
49 jdbc.filters=
50
51 #延迟初始化数据源
52 jdbc.lazyInit=true
53 ######## 主库数据源配置 end ###########
...\ No newline at end of file ...\ No newline at end of file
1 zookeeper.connect=120.76.65.235:2181,120.76.76.90:2181,120.76.43.202:2181
2 auto.commit.enable=true
3 zookeeper.session.timeout.ms=30000
4 zookeeper.connection.timeout.ms=30000
5 rebalance.backoff.ms=4000
6 rebalance.max.retries=10
7 zookeeper.sync.time.ms=2000
8 serializer.class=kafka.serializer.StringEncoder
9 group.id=1
...\ No newline at end of file ...\ No newline at end of file
1 #\u6d4b\u8bd5\u73af\u5883
2 metadata.broker.list=120.76.65.235:9092,120.76.76.90:9092,120.76.43.202:9092
3 #metadata.broker.list=10.47.32.86:9092,10.47.36.217:9092,10.47.32.65:9092,10.47.40.205:9092,10.47.37.105:9092,10.47.40.17:9092,10.47.33.69:9092
4 ##\u6d88\u606f\u538b\u7f29\u7b97\u6cd5,none,gzip,snappy
5 compression.codec=none
6 request.required.acks=1
7 serializer.class=com.sibu.directSale.kafka.BeanSerializer
8 partitioner.class=com.sibu.directSale.kafka.MessagePartitioner
9 key.serializer.class=kafka.serializer.StringEncoder
10 # \u540c\u6b65\u8fd8\u662f\u5f02\u6b65\u53d1\u9001\u6d88\u606f\uff0c\u9ed8\u8ba4\u201csync\u201d\u8868\u540c\u6b65\uff0c"async"\u8868\u5f02\u6b65\u3002\u5f02\u6b65\u53ef\u4ee5\u63d0\u9ad8\u53d1\u9001\u541e\u5410\u91cf,
11 # \u4e5f\u610f\u5473\u7740\u6d88\u606f\u5c06\u4f1a\u5728\u672c\u5730buffer\u4e2d,\u5e76\u9002\u65f6\u6279\u91cf\u53d1\u9001\uff0c\u4f46\u662f\u4e5f\u53ef\u80fd\u5bfc\u81f4\u4e22\u5931\u672a\u53d1\u9001\u8fc7\u53bb\u7684\u6d88\u606f
12 producer.type=async
13 ############## \u5f02\u6b65\u53d1\u9001 (\u4ee5\u4e0b\u56db\u4e2a\u5f02\u6b65\u53c2\u6570\u53ef\u9009) ####################
14 # \u5728async\u6a21\u5f0f\u4e0b,\u5f53message\u88ab\u7f13\u5b58\u7684\u65f6\u95f4\u8d85\u8fc7\u6b64\u503c\u540e,\u5c06\u4f1a\u6279\u91cf\u53d1\u9001\u7ed9broker,\u9ed8\u8ba4\u4e3a5000ms
15 # \u6b64\u503c\u548cbatch.num.messages\u534f\u540c\u5de5\u4f5c.
16 queue.buffering.max.ms = 5000
17 # \u5728async\u6a21\u5f0f\u4e0b,producer\u7aef\u5141\u8bb8buffer\u7684\u6700\u5927\u6d88\u606f\u91cf
18 # \u65e0\u8bba\u5982\u4f55,producer\u90fd\u65e0\u6cd5\u5c3d\u5feb\u7684\u5c06\u6d88\u606f\u53d1\u9001\u7ed9broker,\u4ece\u800c\u5bfc\u81f4\u6d88\u606f\u5728producer\u7aef\u5927\u91cf\u6c89\u79ef
19 # \u6b64\u65f6,\u5982\u679c\u6d88\u606f\u7684\u6761\u6570\u8fbe\u5230\u9600\u503c,\u5c06\u4f1a\u5bfc\u81f4producer\u7aef\u963b\u585e\u6216\u8005\u6d88\u606f\u88ab\u629b\u5f03\uff0c\u9ed8\u8ba4\u4e3a10000
20 queue.buffering.max.messages=10000
21 # \u5982\u679c\u662f\u5f02\u6b65\uff0c\u6307\u5b9a\u6bcf\u6b21\u6279\u91cf\u53d1\u9001\u6570\u636e\u91cf\uff0c\u9ed8\u8ba4\u4e3a200
22 batch.num.messages=200
23 # \u5f53\u6d88\u606f\u5728producer\u7aef\u6c89\u79ef\u7684\u6761\u6570\u8fbe\u5230"queue.buffering.max.meesages"\u540e
24 # \u963b\u585e\u4e00\u5b9a\u65f6\u95f4\u540e,\u961f\u5217\u4ecd\u7136\u6ca1\u6709enqueue(producer\u4ecd\u7136\u6ca1\u6709\u53d1\u9001\u51fa\u4efb\u4f55\u6d88\u606f)
25 # \u6b64\u65f6producer\u53ef\u4ee5\u7ee7\u7eed\u963b\u585e\u6216\u8005\u5c06\u6d88\u606f\u629b\u5f03,\u6b64timeout\u503c\u7528\u4e8e\u63a7\u5236"\u963b\u585e"\u7684\u65f6\u95f4
26 # -1: \u65e0\u963b\u585e\u8d85\u65f6\u9650\u5236,\u6d88\u606f\u4e0d\u4f1a\u88ab\u629b\u5f03
27 # 0:\u7acb\u5373\u6e05\u7a7a\u961f\u5217,\u6d88\u606f\u88ab\u629b\u5f03
28 queue.enqueue.timeout.ms=-1
29 ##\u5f53producer\u63a5\u6536\u5230error ACK,\u6216\u8005\u6ca1\u6709\u63a5\u6536\u5230ACK\u65f6,\u5141\u8bb8\u6d88\u606f\u91cd\u53d1\u7684\u6b21\u6570
30 ##\u56e0\u4e3abroker\u5e76\u6ca1\u6709\u5b8c\u6574\u7684\u673a\u5236\u6765\u907f\u514d\u6d88\u606f\u91cd\u590d,\u6240\u4ee5\u5f53\u7f51\u7edc\u5f02\u5e38\u65f6(\u6bd4\u5982ACK\u4e22\u5931)
31 ##\u6709\u53ef\u80fd\u5bfc\u81f4broker\u63a5\u6536\u5230\u91cd\u590d\u7684\u6d88\u606f.
32 message.send.max.retries=3
...\ No newline at end of file ...\ No newline at end of file
1 ###################### mq config start ######################
2 #生产者ID
3 ProducerId=PID_VB_MQ_TEST
4 AccessKey=LTAIFMy3FkJe6TRC
5 SecretKey=MnJhwEQORSisWSxLh5xrkYm3tu5LUU
6 #生产者发送消息超时时间,单位毫秒
7 SendMsgTimeoutMillis=4000
8 #地址服务器
9 #公有云公测环境:http://onsaddr-internet.aliyun.com/rocketmq/nsaddr4client-internet
10 ONSAddr=http://onsaddr-internet.aliyun.com/rocketmq/nsaddr4client-internet
11 ###################### mq config end ######################
1 mq.topicEnv=com.doubo.ali.mq.topic.env.TopicEnv.TEST
2
3 #mq log ־
4 mq.logRoot=/var/tomcat/sibu_vb_mq_product/mq_ons_log
5 mq.logLevel=INFO
6 mq.logMaxIndex=100
...\ No newline at end of file ...\ No newline at end of file
1 # Redis settings
2 #测试服务器
3 redis.host=120.25.63.159
4 redis.port=6381
5 redis.password=test
6 #本地服务器
7 #redis.host=172.16.131.253
8 #redis.port=6379
9 #redis.password=SapTongRedis
10 #最大空闲数
11 redis.maxIdle=50
12 # 最大连接数
13 redis.maxActive=1000
14 #客户端超时时间单位是毫秒
15 redis.maxWait=1000
16 #链接超时
17 redis.timeout=1500
18 #数据库连接数
19 redis.database=0
20 redis.usePool=true
21 #
22
23 redis.testOnBorrow=true
24
25
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://www.springframework.org/schema/beans
4 http://www.springframework.org/schema/beans/spring-beans.xsd ">
5 <!-- 初始化MQ主题环镜 (必须放在生产者和消费者前面)-->
6 <bean id="topicEnvBean" class="com.doubo.ali.mq.topic.env.TopicEnvBean">
7 <property name="topicEnv">
8 <bean class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean">
9 <property name="staticField" value="${mq.topicEnv}" />
10 </bean>
11 </property>
12 </bean>
13
14 <!-- mq 日志配置 -->
15 <bean class="com.doubo.ali.mq.config.RocketMqLoggerConfigBean">
16 <property name="logRoot" value="${mq.logRoot}"/>
17 <property name="logLevel" value="${mq.logLevel}"/>
18 <property name="logMaxIndex" value="${mq.logMaxIndex}"/>
19 </bean>
20
21 <!-- 生产者 -->
22 <bean id="producer" class="com.doubo.ali.mq.producer.RocketMqProducerBean" init-method="start" destroy-method="shutdown">
23 <property name="properties">
24 <bean class="org.springframework.beans.factory.config.PropertiesFactoryBean">
25 <property name="location" value="classpath:META-INF/conf/mq-producer.properties"/>
26 </bean>
27 </property>
28 </bean>
29
30 </beans>
...\ No newline at end of file ...\ No newline at end of file
1
2 ###################### taobao sms start ######################
3 sms.serverUrl=http://gw.api.taobao.com/router/rest
4 sms.appKey=24659744
5 sms.appSecret=a7f764df49d8243fae0fe55b11c5a321
6 sms.format=json
7 sms.connectTimeout=10000
8 sms.readTimeout=15000
9 sms.enable=true
10 ###################### taobao sms end ######################
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
4 xmlns:p="http://www.springframework.org/schema/p"
5 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
6 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
7
8 <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close">
9 <!-- 基本属性 url、user、password -->
10 <property name="url" value="${jdbc.imtegralurl}"/>
11 <property name="username" value="${jdbc.imtegralusername}"/>
12 <property name="password" value="${jdbc.imtegralpassword}"/>
13 <property name="driverClassName" value="${jdbc.driverClassName}"/>
14
15 <!-- 配置初始化大小、最小、最大 -->
16 <property name="initialSize" value="${jdbc.initialSize}"/>
17 <property name="minIdle" value="${jdbc.minIdle}"/>
18 <property name="maxActive" value="${jdbc.maxActive}"/>
19
20 <!-- 配置获取连接等待超时的时间 毫秒-->
21 <property name="maxWait" value="${jdbc.maxWait}"/>
22
23 <!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
24 <property name="timeBetweenEvictionRunsMillis" value="${jdbc.timeBetweenEvictionRunsMillis}"/>
25
26 <!-- 配置一个连接在池中最小生存的时间,单位是毫秒 -->
27 <property name="minEvictableIdleTimeMillis" value="${jdbc.minEvictableIdleTimeMillis}"/>
28
29 <!-- 连接池为了防止程序从池里取得连接后忘记归还的情况, 而提供了一些参数来设置一个租期, 使用这个可以在一定程度上防止连接泄漏 -->
30 <property name="removeAbandoned" value="${jdbc.removeAbandoned}" />
31 <property name="removeAbandonedTimeout" value="${jdbc.removeAbandonedTimeout}" /><!-- 单位是秒 -->
32
33 <property name="validationQuery" value="SELECT 'x' FROM DUAL"/>
34 <property name="testWhileIdle" value="${jdbc.testWhileIdle}"/>
35 <property name="testOnBorrow" value="${jdbc.testOnBorrow}"/>
36 <property name="testOnReturn" value="${jdbc.testOnReturn}"/>
37
38 <!-- 是否自动提交事务 -->
39 <property name="defaultAutoCommit" value="${jdbc.defaultAutoCommit}"/>
40
41 <!-- 打开PSCache(除了Oracle外,建议其他都设置为false),并且指定每个连接上PSCache的大小 -->
42 <property name="poolPreparedStatements" value="${jdbc.poolPreparedStatements}"/>
43 <property name="maxPoolPreparedStatementPerConnectionSize" value="${jdbc.maxPoolPreparedStatementPerConnectionSize}"/>
44
45 <!-- 配置监控统计拦截的filters-->
46 <property name="filters" value="${jdbc.filters}"/>
47 </bean>
48
49 <!-- 动态数据源 -->
50 <bean id="dynamicDataSource" class="com.sibu.orderHelper.service.database.DynamicDataSource">
51 <property name="targetDataSources">
52 <map>
53 </map>
54 <!-- 这里用配置设置多个数据源 <map key-type="java.lang.String"> <entry key="ORCL"
55 value-ref="orclDataSource"></entry> <entry key="ISC" value-ref="iscDataSource"></entry>
56 </map> -->
57 </property>
58 <property name="defaultTargetDataSource" ref="dataSource" />
59 </bean>
60 </beans>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
4 xmlns:p="http://www.springframework.org/schema/p"
5 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
6 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
7
8 <bean name="genericObjectPoolConfig" class="org.apache.commons.pool2.impl.GenericObjectPoolConfig" >
9 <property name="maxWaitMillis" value="-1" />
10 <property name="maxTotal" value="1000" />
11 <property name="minIdle" value="8" />
12 <property name="maxIdle" value="100" />
13 </bean>
14
15 <!-- 测试环境属性文件位置 -->
16 <bean id="jedisClusterFactorys" class="com.sibu.orderHelper.common.redis.JedisClusterFactory">
17 <property name="prop" ref="redisResources"></property>
18 <property name="addressKeyPrefix" value="address" /> <!-- 属性文件里 key的前缀 -->
19 <property name="timeout" value="300000" />
20 <property name="maxRedirections" value="6" />
21 <property name="genericObjectPoolConfig" ref="genericObjectPoolConfig" />
22 </bean>
23 <!-- redis服务封装 -->
24 <bean id="redisClusterService" class="com.sibu.orderHelper.common.redis.RedisClusterService" >
25 <property name="jedisCluster" ref="jedisClusterFactorys"></property>
26 </bean>
27
28 <!-- redis redisson客户端 集群服务配置 -->
29 <!--<bean id="redissonClient" class="com.sibu.orderHelper.common.redis.redisson.RedissonClientFactory">-->
30 <!--<property name="addressKeyPrefix" value="address"/>-->
31 <!--<property name="prop" ref="redisResources"></property>-->
32 <!--</bean>-->
33 </beans>
...\ No newline at end of file ...\ No newline at end of file
1 image_path=http://uatimg.sibumbg.com:4480/
2 wechat_pay_notify=http://testxws.sibumbg.com/api
3 sibuxws_api_url=https://napi.sibumbg.cn/
4 sibuxws_app_id=wxfc9f84a6f70bf090
5 pay_success_template_id=z4VsJZPbCyHCZ567G5QzJOf6Pe2wn2n3Z3Vcg2e5-i0
6 exchange_success_template_id=wKjIpNegRwzxvDJCZAI-kmBxVnhZzCkpRm_Y6QFHU28
7 order_ship_notice_template_id=HH9rJDKgyDIlRmqPgVnzmOKm6gpQmIADjGlcaYEg_Mo
8 wechat_appid=wx2fbf657f999eb837
9 wechat_appSecret=7355abff3d9b164b40f76ab012803c39
10 wechat_mchid=1233725502
11 enable_test_model=true
12 erp_app_serect=3D1F5F26-1046-4335-A637-EF42DD33277B
13 erp_app_id=6E90EE33-84BA-42DC-B9EF-BA35CAD3F22D
14 erp_base_url=Http://183.6.150.110:9101
15 ip=120.24.234.38
16 initRequest=false
17 certLocalPath=/home/tomcat/apiclient_cert.p12
18 vb_order_overtime_paying_to_close_seconds=900
19 vb_order_overtime_receiving_to_received_seconds=900
20 vb_order_overtime_received_to_finish_seconds=900
21 vb_refund_overtime_money_type_disagree_for_money_to_close_seconds=900
22 vb_refund_overtime_return_type_disagree_for_goods_to_close_seconds=900
23 vb_refund_overtime_return_type_disagree_for_money_to_close_seconds=900
24 vb_refund_overtime_change_goods_type_disagree_to_close_seconds=900
25 vb_refund_overtime_change_goods_type_deny_to_close_seconds=900
26 vb_refund_overtime_wait_for_deliver_info_to_close_seconds=900
27 uat_wesale_url=http://admin.sibumbg.cn
...\ No newline at end of file ...\ No newline at end of file