vote2021/src/main/resources/application-prod.yml
2021-11-05 17:32:45 +08:00

44 lines
1.4 KiB
YAML

spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
druid:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://rm-wz9vza84pe0hb338kbo.mysql.rds.aliyuncs.com:3306/2021_vote?autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=GMT%2B8&characterEncoding=UTF-8
username: root
password: 'lyg8266@Qiween#com'
initial-size: 5
max-active: 500
min-idle: 10
max-wait: 60000
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: 'SELECT 1'
test-while-idle: true
test-on-borrow: false
test-on-return: false
stat-view-servlet:
enabled: true
url-pattern: /druid/*
#login-username: admin
#login-password: admin
filter:
stat:
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: false
wall:
config:
multi-statement-allow: true
wx:
appid: wx35766a64d73d08a9 #appid
project-id: 20210001000100011 #活动id
api-domain: https://wx.xfhd.net/thirdparty #授权域名
auth-code: fbc35e02df8a4fae9f9f827156acd91e #授权码
auth-scope: snsapi_base #scope
activity:
setting:
begin-date: '2021-11-05 00:00' #投票开始时间
end-date: '2021-11-10 00:00' #投票结束时间
times: 1 #投票次数限制