mitao
2024-07-08 022a7ff7abf82cd2546e18071ade5228b4e2339f
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
spring:
  datasource:
    url: jdbc:mysql://140.210.218.57:8306/meiyadb-dev?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8&rewriteBatchedStatements=true
    username: root
    password: Root2018!
    db-name: meiyadb-dev #用来搜集数据库的所有表
    filters: wall,mergeStat
  redis:
    host: 140.210.218.57
    port: 8379
    password: RediS2018
    timeout: 5000ms #连接超时时间(毫秒)
    database: 5
    jedis:
      pool:
        max-idle: 50 # 连接池中的最大空闲连接
        min-idle: 5 # 连接池中的最小空闲连接
        max-active: -1 # 连接池最大连接数(使用负值表示没有限制)
        max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
 
guns:
  swagger-open: true              #是否开启swagger (true/false)
  kaptcha-open: false             #是否开启登录时验证码 (true/false)
  spring-session-open: false      #是否开启spring session,如果是多机环境需要开启(true/false)
  session-invalidate-time: 3600     #session失效时间(只在单机环境下生效,多机环境在SpringSessionConfig类中配置) 单位:秒
  session-validation-interval: 1800  #多久检测一次失效的session(只在单机环境下生效) 单位:秒
  file-upload-way: 1 #文件上传方式:0上传本地服务器,1上传OSS服务器
  file-upload-path: D:\work2018\apache-tomcat-8.0.33\webapps\upload\ #文件上传目录(不配置的话为java.io.tmpdir目录)
  picture-server-address: http://admin.mymtmy.com:${server.port}/upload/static/upload/  #图片服务器地址
  muti-datasource: #多数据源情况的配置
    open: false
    url: jdbc:mysql://140.210.218.57:8306/meiyadb-dev?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8&rewriteBatchedStatements=true
    username: root
    password: Root2018!
    dataSourceNames:
      - dataSourceGuns
      - dataSourceBiz
 
logging:
  level.root: error
  level.com.sinata: debug
  file: logs/meiya-admin.log
 
wxpay:
  sandboxnew: false  #是否使用沙盒
  appId: wx9e0a20d9ffcacc05
  appSecret: meitianmeiya13882090306111111111
  mchId: 1615082226
  partnerKey: meitianmeiya13882090306111111111
  certPath: /wxpay/apiclient_cert.p12
  domain:  http://admin.mymtmy.com/
alipay:
  appId: 2021xxx
  privateKey: xxx
  publicKey: xxx
  serverUrl: https://openapi.alipay.com/gateway.do
  domain: http://admin.mymtmy.com/