55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
server:
|
||
port: 3012
|
||
spring:
|
||
datasource:
|
||
username: landaiqing
|
||
password: HvUtEzfJSLoCY8Oe+6BFhen8RM90h0Jmz/a8uHR/z90Ech1iksWHTeroWXjY+OZhsamVwDmJzPGJfKf2RiXFgA==
|
||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
url: jdbc:mysql://116.196.80.239:3306/qing-yu-club?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=true
|
||
type: com.alibaba.druid.pool.DruidDataSource
|
||
druid:
|
||
initial-size: 20
|
||
min-idle: 20
|
||
max-active: 100
|
||
max-wait: 60000
|
||
connectionProperties: config.decrypt=true;config.decrypt.key=${publicKey};
|
||
stat-view-servlet:
|
||
enabled: true
|
||
url-pattern: /druid/*
|
||
login-username: admin
|
||
login-password: 123456
|
||
filter:
|
||
stat:
|
||
enabled: true
|
||
slow-sql-millis: 2000
|
||
log-slow-sql: true
|
||
wall:
|
||
enabled: true
|
||
config:
|
||
enabled: true
|
||
# redis配置
|
||
redis:
|
||
# Redis数据库索引(默认为0)
|
||
database: 0
|
||
# Redis服务器地址
|
||
host: 116.196.80.239
|
||
# Redis服务器连接端口
|
||
port: 6379
|
||
# Redis服务器连接密码(默认为空)
|
||
password: LDQ20020618xxx
|
||
# 连接超时时间
|
||
timeout: 2s
|
||
lettuce:
|
||
pool:
|
||
# 连接池最大连接数
|
||
max-active: 200
|
||
# 连接池最大阻塞等待时间(使用负值表示没有限制)
|
||
max-wait: -1ms
|
||
# 连接池中的最大空闲连接
|
||
max-idle: 10
|
||
# 连接池中的最小空闲连接
|
||
min-idle: 0
|
||
publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJ9zUefu5PFeiy4nNNRCIaNT5IY3IxRrlHMiotffSPstMensKg4PoSWJsRRrp/zQEzWegxz2Bkv3F5vfGqqM9N0CAwEAAQ==
|
||
logging:
|
||
config: classpath:log4j2-spring.xml
|