application-dev.yml 2.81 KB

spring:
  datasource:
    druid:
      ## 连接池配置
      filters: stat
      maxActive: 20
      initialSize: 1
      maxWait: 60000
      minIdle: 1
      timeBetweenEvictionRunsMillis: 60000
      minEvictableIdleTimeMillis: 300000
      validationQuery: select 'x'
      testWhileIdle: true
      testOnBorrow: false
      testOnReturn: false
      poolPreparedStatements: true
      maxOpenPreparedStatements: 20
      one:
      ## 数据源one配置
        name: DBconfig1
        url: jdbc:mysql://172.18.1.12:3306/view_wh?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
        username: wh_read
        password: 8ik,*IK<
        driver-class-name: com.mysql.cj.jdbc.Driver
        type: com.alibaba.druid.pool.DruidDataSource
      two:
        ## 数据源two配置
        name: DBconfig2
        url: jdbc:mysql://192.168.110.84:3306/work_order?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
#        url: jdbc:mysql://192.168.110.84:3306/work_test?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
        username: root
        password: admin!@#123
        driver-class-name: com.mysql.cj.jdbc.Driver
        type: com.alibaba.druid.pool.DruidDataSource

#  #文件上传配置
  servlet:
    multipart:
      # 启用
      enabled: true
      # 上传文件单个限制
      max-file-size: 5MB
      # 总限制
      max-request-size: 10MB


  redis:
    database: 0
#    database: 1
    host: 192.168.110.84
    port: 6379
    password:    # 密码(默认为空)
    timeout: 6000ms  # 连接超时时长(毫秒)
    jedis:
      pool:
        max-active: 1000  # 连接池最大连接数(使用负值表示没有限制)
        max-wait: -1ms      # 连接池最大阻塞等待时间(使用负值表示没有限制)
        max-idle: 10      # 连接池中的最大空闲连接
        min-idle: 5       # 连接池中的最小空闲连
##上传文件配置 :该配置可根据部署的系统或开发人员自定义路径,每次部署之前需要修改location
uploadFile:
  resourceHandler: /upload_flowChart/**   #请求 url 中的资源映射也是保存到数据库中的父级路径
  #location: D:/java/test/upload_flowChart/ #自定义上传文件服务器硬盘保存路径  ,linux服务器保存路径 /home/changfa/app/wxbjgkpt/upload_flowChart
  location: /opt/images/upload_flowChart/ #自定义上传文件服务器硬盘保存路径  ,linux服务器保存路径 /home/changfa/app/wxbjgkpt/upload_flowChart/
jwt:
  # 加密秘钥
  secret: f4e2e52034348f86b67cde581c0f9eb5
  # token有效时长,单位秒
  expire: 14400
logging:
  config: classpath:logback-spring.xml

#mybatis-plus:
#  mapper-locations: classpath*:mapper/*.xml
#mybatis:
#  mapper-locations: classpath*:mapper/*.xml

#redis