application-dev.yml 2.76 KB
Newer Older
licc's avatar
licc committed
1 2 3 4 5
spring:
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      driver-class-name: com.mysql.cj.jdbc.Driver
liqin's avatar
liqin committed
6 7 8
      url: jdbc:mysql://8.131.244.76:3306/shop-mall?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
      username: root
      password: PRMHmHBr
licc's avatar
licc committed
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
      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
  #文件上传配置
  servlet:
    multipart:
      # 启用
      enabled: true
      # 上传文件单个限制
43
      max-file-size: 20MB
licc's avatar
licc committed
44
      # 总限制
45
      max-request-size: 40MB
46
#  192.168.110.165  adm4HYservice$
licc's avatar
licc committed
47
  redis:
m1991's avatar
m1991 committed
48
    database: 0
49
    host: 192.168.110.165
m1991's avatar
m1991 committed
50
    port: 6379
51
    password: adm4HYservice$    # 密码(默认为空)
liqin's avatar
liqin committed
52
    timeout: 6000ms  # 连接超时时长(毫秒)
licc's avatar
licc committed
53
    jedis:
m1991's avatar
m1991 committed
54 55 56 57 58
      pool:
        max-active: 1000  # 连接池最大连接数(使用负值表示没有限制)
        max-wait: -1ms      # 连接池最大阻塞等待时间(使用负值表示没有限制)
        max-idle: 10      # 连接池中的最大空闲连接
        min-idle: 5       # 连接池中的最小空闲连
licc's avatar
licc committed
59 60 61 62
###上传文件配置 :该配置可根据部署的系统或开发人员自定义路径,每次部署之前需要修改location
uploadFile:
  resourceHandler: /upload_flowChart/**   #请求 url 中的资源映射也是保存到数据库中的父级路径
  location: /opt/images/upload_flowChart/ #自定义上传文件服务器硬盘保存路径  ,linux服务器保存路径 /home/changfa/app/wxbjgkpt/upload_flowChart/
m1991's avatar
m1991 committed
63 64
file:
  upload:
65
    path: /opt/images/
licc's avatar
licc committed
66 67 68 69 70 71
jwt:
  # 加密秘钥
  secret: f4e2e52034348f86b67cde581c0f9eb5
  # token有效时长,单位秒
  expire: 14400
logging:
m1991's avatar
m1991 committed
72 73 74 75 76 77 78 79
  config: classpath:logback-spring.xml
sms:
  accessKeyId: LTAI4G6xmYPhjrS18Bxz5Kqu
  secret: l3ZuSn2XjsFZXaB3yb8O5ASRJh3DDe
  regionId: cn-hangzhou
  domain: dysmsapi.aliyuncs.com
  version: 2017-05-25
  action: SendSms
80
  signName: 西田森生物科技