1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
server:
  port: 9010
  tomcat:
    uri-encoding: UTF-8
 
 
spring:
  devtools:
    restart:
      enabled: true
      additional-exclude: "src/main/java"
      exclude: "static/**"
  main:
    allow-bean-definition-overriding: true
  http:
    encoding:
      force: true
      charset: UTF-8
      enabled: true
  datasource:
    url: jdbc:mysql://gz-cdb-r13d0yi9.sql.tencentcdb.com:62929/everyday_words?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8
    username: root
    password: Yeshi2016@
 
    driver-class-name: com.mysql.jdbc.Driver
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      initial-size: 8
      min-idle: 1
      max-active: 20
      max-wait: 60000
      time-between-eviction-runsMillis: 60000
      min-evictable-idle-timeMillis: 300000
      validation-query: select 'x' FROM DUAL
      test-while-idle: true
      test-on-borrow: false
      test-on-return: false
      pool-prepared-statements: true
      max-open-prepared-statements: 20
      max-pool-prepared-statement-per-connection-size: 20
      filters: stat
      connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
      use-global-data-source-stat: true
  cache:
    type: ehcache
    ehcache:
      config: classpath:ehcache.xml
  redis:
    host: 192.168.3.252
    port: 6379
    password: 123456
    database: 0
    timeout: 5000
    lettuce:
      pool:
        max-active: 200 #连接池最大连接数
        max-wait: 5000 #连接池最大阻塞等待时间
        max-idle: 50 #连接池中的最大空闲连接
        time-between-eviction-runs: 60000 #每隔多长时间运行一次空闲连接回收器(独立线程)
        min-idle: 5 #连接池中的最小空闲连接
      shutdown-timeout: 5000 #连接关闭超时时间
    jedis:
      pool:
        max-total: 1024
        max-wait: 10000ms
        max-idle: 200
        test_on_borrow: true
        min-idle: 8
 
mybatis:
  mapper-locations: classpath:mapper/*.xml
  type-aliases-package: com.everyday.word.entity
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# 腾讯云COS设置
qcloud:
  cos:
     appid: 1255749512
     secret_id: AKIDTlpgJhLjOozvd6QI2XnpfGbgV4NQJk25
     secret_key: xhCSUHo55oHUQ6XicFcmfIgspX0EEzWo
     bucket_name: words
     region: ap-guangzhou
     access_host: