application-test.yml 2.85 KB
Newer Older
licc's avatar
licc committed
1
spring:
2 3 4 5 6 7 8 9 10 11 12
  main:
    allow-bean-definition-overriding: true
  # jackson时间格式化
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
  servlet:
    multipart:
      max-file-size: 1024MB
      max-request-size: 2048MB
      enabled: true
licc's avatar
licc committed
13 14 15 16
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      driver-class-name: com.mysql.cj.jdbc.Driver
17
      url: jdbc:mysql://8.131.244.76:3306/shop-mall?useUnicode=true&serverTimezone=GMT%2B8
liqin's avatar
liqin committed
18 19
      username: root
      password: PRMHmHBr
licc's avatar
licc committed
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
      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
46

liqin's avatar
liqin committed
47
  #/www/server/redis/src/redis-server
licc's avatar
licc committed
48 49 50
  redis:
    open: false  # 是否开启redis缓存  true开启   false关闭
    database: 0
liqin's avatar
liqin committed
51
    host: 8.131.244.76
licc's avatar
licc committed
52
    port: 6379
liqin's avatar
liqin committed
53
    password: 1qaz@WSX
liqin's avatar
liqin committed
54
    timeout: 6000ms
licc's avatar
licc committed
55 56 57 58 59 60
    jedis:
      pool:
        max-active: 1000  # 连接池最大连接数(使用负值表示没有限制)
        max-wait: -1ms      # 连接池最大阻塞等待时间(使用负值表示没有限制)
        max-idle: 10      # 连接池中的最大空闲连接
        min-idle: 5       # 连接池中的最小空闲连接
liqin's avatar
liqin committed
61 62 63 64 65 66
###上传文件配置 :该配置可根据部署的系统或开发人员自定义路径,每次部署之前需要修改location
uploadFile:
  resourceHandler: /upload_flowChart/**   #请求 url 中的资源映射也是保存到数据库中的父级路径
  location: /opt/images/upload_flowChart/ #自定义上传文件服务器硬盘保存路径  ,linux服务器保存路径 /home/changfa/app/wxbjgkpt/upload_flowChart/
file:
  upload:
liqin's avatar
liqin committed
67
    path: /opt/images/
liqin's avatar
liqin committed
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
jwt:
  # 加密秘钥
  secret: f4e2e52034348f86b67cde581c0f9eb5
  # token有效时长,单位秒
  expire: 14400
logging:
  config: classpath:logback-spring.xml
sms:
  accessKeyId: LTAI4G6xmYPhjrS18Bxz5Kqu
  secret: l3ZuSn2XjsFZXaB3yb8O5ASRJh3DDe
  regionId: cn-hangzhou
  domain: dysmsapi.aliyuncs.com
  version: 2017-05-25
  action: SendSms
  signName: 西田森生物科技
liqin's avatar
liqin committed
83 84 85 86 87 88 89 90 91 92 93 94 95

xxl:
  job:
    accessToken:
    admin:
      addresses: http://172.24.252.165:8090/job-admin
    executor:
      address:
      appname: shop-mall
      ip:
      logpath: /var/logs/xxl-job/jobhandler
      logretentiondays: 30
      port: 9999