Browse Source

[测试环境][新增]:新增yml支持测试环境

release_toaliyun_real
Stormeye Wu 7 years ago
parent
commit
ad0583cd05
8 changed files with 183 additions and 10 deletions
  1. +2
    -2
      mallinkAdmin/src/main/resources/application-prod.yml
  2. +43
    -0
      mallinkAdmin/src/main/resources/application-test.yml
  3. +3
    -2
      mallinkBApi/src/main/resources/application-prod.yml
  4. +42
    -0
      mallinkBApi/src/main/resources/application-test.yml
  5. +4
    -3
      mallinkCApi/src/main/resources/application-prod.yml
  6. +42
    -0
      mallinkCApi/src/main/resources/application-test.yml
  7. +4
    -3
      mallinkSchedule/src/main/resources/application-prod.yml
  8. +43
    -0
      mallinkSchedule/src/main/resources/application-test.yml

+ 2
- 2
mallinkAdmin/src/main/resources/application-prod.yml View File

@@ -22,9 +22,9 @@ spring:
connectionProperties: "druid.stat.mergeSql=true;druid.stat.slowSqlMillis=6000"
# REDIS
redis:
host: 202.165.179.86
host: 127.0.0.1
port: 6379
password: ENC(YOLO4buIPjiYfosG+Akk3XZ9HYrbCFco)
password: ENC(4Z6xTEJOw04DYyhur0mTwlveexVEX9YRfNTY78MyKgU=)
timeout: 3600
expire: 1800 #30分钟
database: 1


+ 43
- 0
mallinkAdmin/src/main/resources/application-test.yml View File

@@ -0,0 +1,43 @@
spring:
# JDBC
datasource:
url: jdbc:mysql://formalldb.cfqyqflkdlit.rds.cn-northwest-1.amazonaws.com.cn:3306/mallink?useUnicode=true&characterEncoding=UTF-8
username: ENC(BDv01/sQdBGEhFEXuw+8tw==)
password: ENC(0wvpX49+RMUpGP2tb9PY4ta/yCwAmLLhbKG9ndvifPI=)
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
filters: stat
maxActive: 20
initialSize: 1
maxWait: 60000
minIdle: 1
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: select 'x'
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20
connectionProperties: "druid.stat.mergeSql=true;druid.stat.slowSqlMillis=6000"
# REDIS
redis:
host: 127.0.0.1
port: 6379
password: ENC(4Z6xTEJOw04DYyhur0mTwlveexVEX9YRfNTY78MyKgU=)
timeout: 3600
expire: 1800 #30分钟
database: 1
defaultExpiration: 2592000 # 默认生命周期30天
jedis:
pool:
max-active: 8
max-idle: 8
max-wait: -1
min-idle: 0

logging:
level:
tk.mybatis: debug
com.iformall: debug
path: ./logs/admin

+ 3
- 2
mallinkBApi/src/main/resources/application-prod.yml View File

@@ -21,12 +21,13 @@ spring:
maxOpenPreparedStatements: 20
# REDIS
redis:
host: 202.165.179.86
host: 127.0.0.1
port: 6789
password: ENC(YOLO4buIPjiYfosG+Akk3XZ9HYrbCFco)
password: ENC(4Z6xTEJOw04DYyhur0mTwlveexVEX9YRfNTY78MyKgU=)
timeout: 3600
expire: 1800 #30分钟
database: 1
defaultExpiration: 2592000 # 默认生命周期30天
jedis:
pool:
max-active: 8


+ 42
- 0
mallinkBApi/src/main/resources/application-test.yml View File

@@ -0,0 +1,42 @@
spring:
# JDBC
datasource:
url: jdbc:mysql://formalldb.cfqyqflkdlit.rds.cn-northwest-1.amazonaws.com.cn:3306/mallink?useUnicode=true&characterEncoding=UTF-8
username: ENC(BDv01/sQdBGEhFEXuw+8tw==)
password: ENC(0wvpX49+RMUpGP2tb9PY4ta/yCwAmLLhbKG9ndvifPI=)
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
filters: stat
maxActive: 20
initialSize: 1
maxWait: 60000
minIdle: 1
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: select 'x'
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20
# REDIS
redis:
host: 127.0.0.1
port: 6789
password: ENC(4Z6xTEJOw04DYyhur0mTwlveexVEX9YRfNTY78MyKgU=)
timeout: 3600
expire: 1800 #30分钟
database: 1
defaultExpiration: 2592000 # 默认生命周期30天
jedis:
pool:
max-active: 8
max-idle: 8
max-wait: -1
min-idle: 0

logging:
level:
tk.mybatis: debug
com.iformall: debug
path: ./logs/b

+ 4
- 3
mallinkCApi/src/main/resources/application-prod.yml View File

@@ -21,12 +21,13 @@ spring:
maxOpenPreparedStatements: 20
# REDIS
redis:
host: 202.165.179.86
host: 127.0.0.1
port: 6789
password: ENC(YOLO4buIPjiYfosG+Akk3XZ9HYrbCFco)
password: ENC(4Z6xTEJOw04DYyhur0mTwlveexVEX9YRfNTY78MyKgU=)
timeout: 3600
expire: 1800 #30分钟
database: 1
defaultExpiration: 2592000 # 默认生命周期30天
jedis:
pool:
max-active: 8
@@ -37,5 +38,5 @@ spring:
logging:
level:
tk.mybatis: debug
com.iformall.mapper: debug
com.iformall: debug
path: ./logs/c

+ 42
- 0
mallinkCApi/src/main/resources/application-test.yml View File

@@ -0,0 +1,42 @@
spring:
# JDBC
datasource:
url: jdbc:mysql://formalldb.cfqyqflkdlit.rds.cn-northwest-1.amazonaws.com.cn:3306/mallink?useUnicode=true&characterEncoding=UTF-8
username: ENC(BDv01/sQdBGEhFEXuw+8tw==)
password: ENC(0wvpX49+RMUpGP2tb9PY4ta/yCwAmLLhbKG9ndvifPI=)
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
filters: stat
maxActive: 20
initialSize: 1
maxWait: 60000
minIdle: 1
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: select 'x'
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20
# REDIS
redis:
host: 127.0.0.1
port: 6789
password: ENC(4Z6xTEJOw04DYyhur0mTwlveexVEX9YRfNTY78MyKgU=)
timeout: 3600
expire: 1800 #30分钟
database: 1
defaultExpiration: 2592000 # 默认生命周期30天
jedis:
pool:
max-active: 8
max-idle: 8
max-wait: -1
min-idle: 0

logging:
level:
tk.mybatis: debug
com.iformall: debug
path: ./logs/c

+ 4
- 3
mallinkSchedule/src/main/resources/application-prod.yml View File

@@ -22,12 +22,13 @@ spring:
connectionProperties: "druid.stat.mergeSql=true;druid.stat.slowSqlMillis=6000"
# REDIS
redis:
host: 202.165.179.86
host: 127.0.0.1
port: 6379
password: ENC(YOLO4buIPjiYfosG+Akk3XZ9HYrbCFco)
password: ENC(4Z6xTEJOw04DYyhur0mTwlveexVEX9YRfNTY78MyKgU=)
timeout: 3600
expire: 1800 #30分钟
database: 1
defaultExpiration: 2592000 # 默认生命周期30天
jedis:
pool:
max-active: 8
@@ -38,5 +39,5 @@ spring:
logging:
level:
tk.mybatis: debug
com.iformall.mapper: debug
com.iformall: debug
path: ./logs/s

+ 43
- 0
mallinkSchedule/src/main/resources/application-test.yml View File

@@ -0,0 +1,43 @@
spring:
# JDBC
datasource:
url: jdbc:mysql://formalldb.cfqyqflkdlit.rds.cn-northwest-1.amazonaws.com.cn:3306/mallink?characterEncoding=UTF-8
username: ENC(BDv01/sQdBGEhFEXuw+8tw==)
password: ENC(0wvpX49+RMUpGP2tb9PY4ta/yCwAmLLhbKG9ndvifPI=)
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
filters: stat
maxActive: 20
initialSize: 1
maxWait: 60000
minIdle: 1
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: select 'x'
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20
connectionProperties: "druid.stat.mergeSql=true;druid.stat.slowSqlMillis=6000"
# REDIS
redis:
host: 127.0.0.1
port: 6379
password: ENC(4Z6xTEJOw04DYyhur0mTwlveexVEX9YRfNTY78MyKgU=)
timeout: 3600
expire: 1800 #30分钟
database: 1
defaultExpiration: 2592000 # 默认生命周期30天
jedis:
pool:
max-active: 8
max-idle: 8
max-wait: -1
min-idle: 0

logging:
level:
tk.mybatis: debug
com.iformall: debug
path: ./logs/s

Loading…
Cancel
Save