forked from integrated_whb/integrated_whb
优化数据源配置
parent
eca9838520
commit
dfcd274dd1
|
@ -0,0 +1,99 @@
|
|||
|
||||
datasource.no1.driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
datasource.no1.url=jdbc:mysql://192.168.0.69:3306/qa-traffic-prevention?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no1.username=root
|
||||
datasource.no1.password=root
|
||||
datasource.no2.driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
datasource.no2.url=jdbc:mysql://192.168.0.69:3306/qa-traffic-admin?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no2.username=root
|
||||
datasource.no2.password=root
|
||||
datasource.no3.driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
datasource.no3.url=jdbc:mysql://192.168.0.69:3306/qa-traffic-education-org?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no3.username=root
|
||||
datasource.no3.password=root
|
||||
|
||||
#druid\u8FDE\u63A5\u6C60
|
||||
spring.datasource.type: com.alibaba.druid.pool.DruidDataSource
|
||||
#\u6700\u5927\u6D3B\u8DC3\u6570
|
||||
spring.datasource.maxActive: 20
|
||||
#\u521D\u59CB\u5316\u6570\u91CF
|
||||
spring.datasource.initialSize: 1
|
||||
#\u6700\u5927\u8FDE\u63A5\u7B49\u5F85\u8D85\u65F6\u65F6\u95F4
|
||||
spring.datasource.maxWait: 60000
|
||||
#\u6253\u5F00PSCache\uFF0C\u5E76\u4E14\u6307\u5B9A\u6BCF\u4E2A\u8FDE\u63A5PSCache\u7684\u5927\u5C0F
|
||||
spring.datasource.poolPreparedStatements: true
|
||||
spring.datasource.maxPoolPreparedStatementPerConnectionSize: 20
|
||||
#\u901A\u8FC7connectionProperties\u5C5E\u6027\u6765\u6253\u5F00mergeSql\u529F\u80FD\uFF1B\u6162SQL\u8BB0\u5F55
|
||||
#connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
||||
spring.datasource.minIdle: 1
|
||||
spring.datasource.timeBetweenEvictionRunsMillis: 60000
|
||||
spring.datasource.minEvictableIdleTimeMillis: 300000
|
||||
spring.datasource.validationQuery: select 1 from dual
|
||||
spring.datasource.testWhileIdle: true
|
||||
spring.datasource.testOnBorrow: false
|
||||
spring.datasource.testOnReturn: false
|
||||
#\u914D\u7F6E\u76D1\u63A7\u7EDF\u8BA1\u62E6\u622A\u7684filters\uFF0C\u53BB\u6389\u540E\u76D1\u63A7\u754C\u9762sql\u5C06\u65E0\u6CD5\u7EDF\u8BA1,'wall'\u7528\u4E8E\u9632\u706B\u5899
|
||||
filters: stat, wall, log4j
|
||||
|
||||
#\u7F13\u5B58\u914D\u7F6E\u6587\u4EF6\u4F4D\u7F6E
|
||||
spring.cache.ehcache.cofnig=ehcache.xml
|
||||
|
||||
#\u914D\u7F6E\u8FD9\u53E5\u8BDD,\u63A7\u5236\u53F0\u8F93\u51FAsql\u8BED\u53E5
|
||||
logging.level.com.zcloud.mapper=debug
|
||||
|
||||
#\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F\u9650\u5236
|
||||
spring.servlet.multipart.max-file-size=500MB
|
||||
spring.servlet.multipart.max-request-size=500MB
|
||||
|
||||
#activiti\u6A21\u578B\u68C0\u6D4B
|
||||
spring.activiti.check-process-definitions=false
|
||||
|
||||
#Mq\u914D\u7F6E
|
||||
rocketmq.consumer.group2=edu-admin-edit
|
||||
rocketmq.consumer.group1=edu-admin-add
|
||||
rocketmq.name-server=192.168.0.31:9876
|
||||
rocketmq.producer.group=libmiddle
|
||||
rocketmq.producer.send-message-timeout=3000
|
||||
rocketmq.producer.compress-message-body-threshold=4096
|
||||
rocketmq.producer.max-message-size=4194304
|
||||
rocketmq.producer.retry-times-when-send-failed=3
|
||||
rocketmq.producer.retry-next-server=true
|
||||
rocketmq.producer.retry-times-when-send-async-failed=3
|
||||
## topic \u524D\u7F00
|
||||
|
||||
mq.topic.info=info
|
||||
mq.topic.eightWork=eightWork_traffic
|
||||
mq.group.info=scheduled_tasks
|
||||
mq.group.eightWork=scheduled_tasks_eightWork
|
||||
|
||||
#\u5B57\u7B26
|
||||
spring.servlet.encoding.charset=UTF-8
|
||||
spring.servlet.encoding.force=true
|
||||
spring.servlet.encoding.enabled=true
|
||||
# \u5173\u95EDspringboot\u542F\u52A8\u65F6\u7684banner
|
||||
spring.main.banner-mode=off
|
||||
#jar\u5305\u90E8\u7F72\u65F6\u53BB\u6389\u6CE8\u91CA
|
||||
#web.upload-path=h:/
|
||||
#web.front-path=h:/
|
||||
#spring.resources.static-locations=file:${web.upload-path},file:${web.front-path}
|
||||
config.basicInfo.id=011de03c1d0a412ca78e2e5d4637ea81
|
||||
config.basic.url=http://192.168.0.7:8082/zcouldProperty
|
||||
|
||||
customer.id=LAZ-20221129-3
|
||||
customer.SECRET_KEY=a256e8575c3f4240b08f6350f13ce8e2
|
||||
#\u5F00\u53D1
|
||||
customer.url=http://192.168.0.18:8997/sync/
|
||||
customer.domain=yth.qhdsafety.com
|
||||
|
||||
|
||||
#\u81EA\u5B9A\u4E49\u7EBF\u7A0B\u6C60\u914D\u7F6E
|
||||
# \u6838\u5FC3\u7EBF\u7A0B\u6C60\u6570
|
||||
spring.task.execution.pool.core-size= 1
|
||||
# \u6700\u5927\u7EBF\u7A0B\u6C60\u6570
|
||||
spring.task.execution.pool.max-size= 1
|
||||
# \u4EFB\u52A1\u961F\u5217\u7684\u5BB9\u91CF
|
||||
spring.task.execution.pool.queue-capacity= 60
|
||||
# \u975E\u6838\u5FC3\u7EBF\u7A0B\u7684\u5B58\u6D3B\u65F6\u95F4
|
||||
spring.task.execution.pool.keep-alive= 60
|
||||
# \u7EBF\u7A0B\u6C60\u7684\u524D\u7F00\u540D\u79F0
|
||||
spring.task.execution.thread-name-prefix= upload-archives-file-task-
|
|
@ -1,104 +1,5 @@
|
|||
spring.application.name=integrated_traffic
|
||||
server.port=7082
|
||||
|
||||
datasource.no1.driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
datasource.no1.url=jdbc:mysql://192.168.0.26:3306/qa-traffic-prevention?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no1.username=root
|
||||
datasource.no1.password=1234
|
||||
|
||||
datasource.no2.driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
datasource.no2.url=jdbc:mysql://192.168.0.26:3306/qa-traffic-admin?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no2.username=root
|
||||
datasource.no2.password=1234
|
||||
|
||||
datasource.no3.driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
datasource.no3.url=jdbc:mysql://192.168.0.26:3306/qa-traffic-education-org?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no3.username=root
|
||||
datasource.no3.password=1234
|
||||
|
||||
|
||||
#druid\u8FDE\u63A5\u6C60
|
||||
spring.datasource.type: com.alibaba.druid.pool.DruidDataSource
|
||||
#\u6700\u5927\u6D3B\u8DC3\u6570
|
||||
spring.datasource.maxActive: 20
|
||||
#\u521D\u59CB\u5316\u6570\u91CF
|
||||
spring.datasource.initialSize: 1
|
||||
#\u6700\u5927\u8FDE\u63A5\u7B49\u5F85\u8D85\u65F6\u65F6\u95F4
|
||||
spring.datasource.maxWait: 60000
|
||||
#\u6253\u5F00PSCache\uFF0C\u5E76\u4E14\u6307\u5B9A\u6BCF\u4E2A\u8FDE\u63A5PSCache\u7684\u5927\u5C0F
|
||||
spring.datasource.poolPreparedStatements: true
|
||||
spring.datasource.maxPoolPreparedStatementPerConnectionSize: 20
|
||||
#\u901A\u8FC7connectionProperties\u5C5E\u6027\u6765\u6253\u5F00mergeSql\u529F\u80FD\uFF1B\u6162SQL\u8BB0\u5F55
|
||||
#connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
||||
spring.datasource.minIdle: 1
|
||||
spring.datasource.timeBetweenEvictionRunsMillis: 60000
|
||||
spring.datasource.minEvictableIdleTimeMillis: 300000
|
||||
spring.datasource.validationQuery: select 1 from dual
|
||||
spring.datasource.testWhileIdle: true
|
||||
spring.datasource.testOnBorrow: false
|
||||
spring.datasource.testOnReturn: false
|
||||
#\u914D\u7F6E\u76D1\u63A7\u7EDF\u8BA1\u62E6\u622A\u7684filters\uFF0C\u53BB\u6389\u540E\u76D1\u63A7\u754C\u9762sql\u5C06\u65E0\u6CD5\u7EDF\u8BA1,'wall'\u7528\u4E8E\u9632\u706B\u5899
|
||||
filters: stat, wall, log4j
|
||||
|
||||
#\u7F13\u5B58\u914D\u7F6E\u6587\u4EF6\u4F4D\u7F6E
|
||||
spring.cache.ehcache.cofnig=ehcache.xml
|
||||
|
||||
#\u914D\u7F6E\u8FD9\u53E5\u8BDD,\u63A7\u5236\u53F0\u8F93\u51FAsql\u8BED\u53E5
|
||||
logging.level.com.zcloud.mapper=debug
|
||||
|
||||
#\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F\u9650\u5236
|
||||
spring.servlet.multipart.max-file-size=500MB
|
||||
spring.servlet.multipart.max-request-size=500MB
|
||||
|
||||
#activiti\u6A21\u578B\u68C0\u6D4B
|
||||
spring.activiti.check-process-definitions=false
|
||||
|
||||
#Mq\u914D\u7F6E
|
||||
rocketmq.consumer.group2=edu-admin-edit
|
||||
rocketmq.consumer.group1=edu-admin-add
|
||||
rocketmq.name-server=192.168.0.31:9876
|
||||
rocketmq.producer.group=libmiddle
|
||||
rocketmq.producer.send-message-timeout=3000
|
||||
rocketmq.producer.compress-message-body-threshold=4096
|
||||
rocketmq.producer.max-message-size=4194304
|
||||
rocketmq.producer.retry-times-when-send-failed=3
|
||||
rocketmq.producer.retry-next-server=true
|
||||
rocketmq.producer.retry-times-when-send-async-failed=3
|
||||
## topic \u524D\u7F00
|
||||
|
||||
mq.topic.info=info
|
||||
mq.topic.eightWork=eightWork_traffic
|
||||
mq.group.info=scheduled_tasks
|
||||
mq.group.eightWork=scheduled_tasks_eightWork
|
||||
|
||||
#\u5B57\u7B26
|
||||
spring.servlet.encoding.charset=UTF-8
|
||||
spring.servlet.encoding.force=true
|
||||
spring.servlet.encoding.enabled=true
|
||||
# \u5173\u95EDspringboot\u542F\u52A8\u65F6\u7684banner
|
||||
spring.main.banner-mode=off
|
||||
#jar\u5305\u90E8\u7F72\u65F6\u53BB\u6389\u6CE8\u91CA
|
||||
#web.upload-path=h:/
|
||||
#web.front-path=h:/
|
||||
#spring.resources.static-locations=file:${web.upload-path},file:${web.front-path}
|
||||
config.basicInfo.id=011de03c1d0a412ca78e2e5d4637ea81
|
||||
config.basic.url=http://192.168.0.7:8082/zcouldProperty
|
||||
|
||||
customer.id=LAZ-20221129-3
|
||||
customer.SECRET_KEY=a256e8575c3f4240b08f6350f13ce8e2
|
||||
#\u5F00\u53D1
|
||||
customer.url=http://192.168.0.18:8997/sync/
|
||||
customer.domain=yth.qhdsafety.com
|
||||
|
||||
|
||||
#\u81EA\u5B9A\u4E49\u7EBF\u7A0B\u6C60\u914D\u7F6E
|
||||
# \u6838\u5FC3\u7EBF\u7A0B\u6C60\u6570
|
||||
spring.task.execution.pool.core-size= 1
|
||||
# \u6700\u5927\u7EBF\u7A0B\u6C60\u6570
|
||||
spring.task.execution.pool.max-size= 1
|
||||
# \u4EFB\u52A1\u961F\u5217\u7684\u5BB9\u91CF
|
||||
spring.task.execution.pool.queue-capacity= 60
|
||||
# \u975E\u6838\u5FC3\u7EBF\u7A0B\u7684\u5B58\u6D3B\u65F6\u95F4
|
||||
spring.task.execution.pool.keep-alive= 60
|
||||
# \u7EBF\u7A0B\u6C60\u7684\u524D\u7F00\u540D\u79F0
|
||||
spring.task.execution.thread-name-prefix= upload-archives-file-task-
|
||||
spring.profiles.active=dev
|
||||
|
|
Loading…
Reference in New Issue