60 lines
1.9 KiB
YAML
60 lines
1.9 KiB
YAML
|
|
spring:
|
|
datasource:
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
druid:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://59.110.212.44:3306/e_book_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
|
username: root
|
|
password: HSXY1234hsxy
|
|
initial-size: 10
|
|
max-active: 100
|
|
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
|
|
#Oracle需要打开注释
|
|
#validation-query: SELECT 1 FROM DUAL
|
|
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
|
|
tomcat:
|
|
initSQL: SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci
|
|
|
|
rabbitmq:
|
|
host: 59.110.212.44
|
|
port: 5672
|
|
username: admin
|
|
password: 751019
|
|
virtualHost: /
|
|
aliyun:
|
|
oss:
|
|
file:
|
|
endpoint: oss-cn-beijing.aliyuncs.com
|
|
keyid: LTAIiSMeo8ztauV5
|
|
keysecret: pVIYAOIFSUGg61lYfE8cjg2ZNpnLJA
|
|
bucketname: ehh-private-01
|
|
sms:
|
|
accessKeyId: LTAI5tJbbw5fY97pnw635yq3
|
|
accessKeySecret: LTXQ9v3OYVwNVbDWWfVpbbcVDKErKi
|
|
singName: 疯子读书
|
|
|
|
templateCode: SMS_248840040
|
|
|
|
server:
|
|
port: 9200 |