|
|
|
@@ -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 |