application-dev.yaml 1.61 KB
server:
  port: 8011

dispatch:
  cron:
    expr: 0 10 8-23 * * ?
    next-day-limit: 2

scheduler:
  init-engineer-capacity:
    # 每天22点1次
    cron-expr: 0 0 22 * * ?
    #cron-expr: 0 51 * * * ?
    day-offset-begin: 0
    day-offset-end: 20
    rewrite-force: true

  calc-engineer-capacity:
    # 8-20点,每30分钟1次
    cron-expr: 0 */30 1-23 * * ?
    day-offset-begin: 0
    day-offset-end: 14

  calc-org-capacity:
    # 8-20点,每小时1次
    cron-expr: 0 0 1-23 * * ?
    day-offset-begin: 0
    day-offset-end: 14

spring:
  application:
    name: project-dispatch
    jackson:
      default-property-inclusion: NON_NULL
      #    time-zone: GMT+8
      date-format: yyyy-MM-dd HH:mm:ss
  cloud:
    nacos:
      discovery:
        server-addr: 127.0.0.1:8848
        group: project
      config:
        server-addr: 127.0.0.1:8848
        group: project
        file-extension: yaml
        import-check:
          # no config file
          enabled: false
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://127.0.0.1:3306/saas_aftersale_test?serverTimezone=Asia/Shanghai
    username: root
    password: 123456
#    url: jdbc:mysql://localhost:32306/saas_aftersale_test?serverTimezone=Asia/Shanghai
#    username: boxi
#    password: boxi_dev_0725
#    type: com.alibaba.druid.pool.DruidDataSource

  jpa:
    show-sql: true
    hibernate:
      ddl-auto: none

seata:
  application-id: ${spring.application.name}
  tx-service-group: ${spring.application.name}-group
  service:
    vgroup-mapping:
      project-dispatch-group: default
    grouplist:
      default: 127.0.0.1:8091