application-dev.yml 3.61 KB
Newer Older
licc's avatar
licc committed
1
spring:
2 3 4 5 6 7 8 9 10 11 12 13 14
  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
  mvc:
    throw-exception-if-no-handler-found: true
licc's avatar
licc committed
15 16 17 18
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      driver-class-name: com.mysql.cj.jdbc.Driver
licc's avatar
licc committed
19
      url: jdbc:mysql://8.140.102.52:3306/shop-mall?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
liqin's avatar
liqin committed
20
      username: root
licc's avatar
licc committed
21
      password: adm4HYservice$
licc's avatar
licc committed
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
      initial-size: 10
      max-active: 100
      min-idle: 10
      max-wait: 60000
      # 打开PSCache,并且指定每个连接上PSCache的大小
      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
      # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
      filter:
        stat:
          log-slow-sql: true
          slow-sql-millis: 1000
          merge-sql: false
        wall:
          config:
            multi-statement-allow: true
50

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

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