spring boot 整合quartz集群

server:
  port: 8081

spring:
  datasource:
        name: test
        url: jdbc:mysql://127.0.0.1:3306/test
        username: root
        password: 1234
        # 使用druid数据源
        type: com.alibaba.druid.pool.DruidDataSource
        driver-class-name: com.mysql.jdbc.Driver
        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

mybatis:
  mapper-locations: classpath:mapper/*.xml
  type-aliases-package: com.winter.entity


org:
  quartz:
    scheduler:
      instanceid: AUTO
      instanceName: DefaultQuartzScheduler
    jobStore:
      useProperties: false
      isClustered: true
      tablePrefix: QRTZ_
      misfireThreshold: 60000
      class: org.quartz.impl.jdbcjobstore.JobStoreTX
      dataSource: myDS
      clusterCheckinInterval: 20000
      driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
    threadPool:
      threadCount: 25
      threadPriority: 5
      class: org.quartz.simpl.SimpleThreadPool
    dataSource:
      myDS:
        password: 1234
        validationQuery: select 0 from dual
        driver: com.mysql.jdbc.Driver
        user: root
        URL: jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true
        maxConnections: 5

猜你喜欢

转载自blog.csdn.net/july_young/article/details/82385555