zr-job-sit.yml 3.26 KB
server:
  port: 8004
mybatis-plus:
  mapper-locations:
    - classpath*:mapper/**/*Mapper.xml
  type-aliases-package: com.chinagas.modules.job.entity
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    log-prefix: SQL
spring:
  redis:
    host: 172.17.56.37
    port: 6379
    database: 0
    timeout: 300
  quartz:
    properties:
      org:
        quartz:
          scheduler:
            instanceName: ZrScheduler
            instanceId: AUTO
        threadPool:
          class: org.quartz.simpl.SimpleThreadPool
          threadCount: 20
          threadPriority: 5
        jobStore:
          class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
          isClustered: true
          clusterCheckInterval: 15000
          maxMisfiresToHandleAtATime: 1
          txIsolationLevelSerializable: true
          misfireThreshold: 12000
          tablePrefix: QRTZ_
    scheduler-name: ZrSchedule
    auto-startup: true
    startup-delay: 1
    wait-for-jobs-to-complete-on-shutdown: true
    overwrite-existing-jobs: true
  datasource:
    url: "jdbc:mysql://172.17.56.104:3306/chinagas?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true"
    username: root
    password: 123456
    druid:
      #初始化时建立的连接数
      driverClassName: com.mysql.cj.jdbc.Driver
      initialSize: 1
      #最小连接池数量
      minIdle: 1
      #最大连接池数
      maxActive: 20
      # 配置获取连接等待超时的时间
      maxWait: 60000
      # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
      timeBetweenEvictionRunsMillis: 60000
      # 配置一个连接在池中最小生存的时间,单位是毫秒
      minEvictableIdleTimeMillis: 300000
      # 配置一个连接在池中最大生存的时间,单位是毫秒
      maxEvictableIdleTimeMillis: 900000
      # 配置检测连接是否有效
      validationQuery: SELECT 1 FROM DUAL
      testWhileIdle: true
      testOnBorrow: false
      testOnReturn: false
      webStatFilter:
        enabled: true
      statViewServlet:
        enabled: true
        # 设置白名单,不填则允许所有访问
        allow:
        url-pattern: /druid/*
        # 控制台管理用户名和密码
        #login-username: root
        #login-password: 7614
      filter:
        stat:
          enabled: true
          # 慢SQL记录
          log-slow-sql: true
          slow-sql-millis: 1000
          merge-sql: true
        #防御sql注入
        wall:
          config:
            multi-statement-allow: true


feign:
  sentinel:
    enabled: true
  okhttp:
    enabled: true
  httpclient:
    enabled: false
  client:
    config:
      remoteDepInfoService:
        connectTimeout: 800000
        readTimeout: 600000
      remoteEmpInfoService:
        connectTimeout: 8000000
        readTimeout: 6000000
      remoteDataSyncService:
        connectTimeout: 8000000
        readTimeout: 6000000
      remoteMcsbService:
        connectTimeout: 80000000
        readTimeout: 60000000
      default:
        connectTimeout: 20000
        readTimeout: 10000
  compression:
    request:
      enabled: true
      mime-types: text/xml,application/xml,application/json
      min-request-size: 4096
    response:
      enabled: true