Commit 69b901f1 authored by hanbing's avatar hanbing

添加生产环境配置文件

parent 04a213d9
...@@ -18,34 +18,30 @@ threadPool: ...@@ -18,34 +18,30 @@ threadPool:
keepAliveTime: 60000 keepAliveTime: 60000
spring: spring:
datasource: dynamic:
driver-class-name: com.mysql.cj.jdbc.Driver primary: master
url: jdbc:mysql://10.100.1.59:3306/t_signal?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true datasource:
username: root master:
password: Wanji300552 type: com.alibaba.druid.pool.DruidDataSource
type: com.alibaba.druid.pool.DruidDataSource url: jdbc:mysql://10.100.4.14:3306/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
filters: stat # url: jdbc:mysql://10.102.1.112:53306/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
minIdle: 50 username: root
maxActive: 200 password: Wanji300552
initialSize: 10 driverClassName: com.mysql.cj.jdbc.Driver
maxWait: 5000 slave:
minEvictableIdleTimeMillis: 60000 type: com.alibaba.druid.pool.DruidDataSource
timeBetweenEvictionRunsMillis: 30000 url: jdbc:mysql://10.100.4.14:3306/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
testWhileIdle: true username: root
testOnBorrow: false password: Wanji300552
testOnReturn: false driverClassName: com.mysql.cj.jdbc.Driver
keepAlive: false webService:
validationQuery: SELECT 1 driver-class-name: com.mysql.cj.jdbc.Driver
poolPreparedStatements: false url: jdbc:mysql://10.100.4.14:3306/t_signal?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
maxPoolPreparedStatementPerConnectionSize: -1 username: root
maxOpenPreparedStatements: -1 password: Wanji300552
logAbandoned: true type: com.alibaba.druid.pool.DruidDataSource
encoding:
force: true
charset: UTF-8
enabled: true
redis: redis:
host: 10.100.1.59 host: 10.100.4.14
port: 6379 port: 6379
password: Wanji300552 password: Wanji300552
jedis: jedis:
......
server:
port: 32000
servlet:
context-path: /utc
spring:
datasource:
dynamic:
primary: master
datasource:
master:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://10.100.4.14:3306/t_signal_utc?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username: root
password: Wanji300552
driverClassName: com.mysql.cj.jdbc.Driver
slave:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://10.100.4.14:3306/t_signal_utc?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username: root
password: Wanji300552
driverClassName: com.mysql.cj.jdbc.Driver
redis:
host: 10.100.4.14
port: 6379
password: Wanji300552
jedis:
pool:
max-active: 200
max-wait: 5000
max-idle: 20
min-idle: 10
timeout: 5000
database: 5
# todo 生产环境信号平台
signal:
# true测试不执行方案下发 重点
mock: false
# 厂商接口
manufacturer:
hk:
# 服务地址
artemisHost: 10.100.1.101
# 接口服务验证用户名
artemisAppKey: 21560443
# 接口服务验证密钥
artemisAppSecret: 5z0O0DRKALWyIxdQU4kp
# 海康能力开放平台的网站路径
artemisPath: /artemis
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment