application-pro.yaml 2.19 KB
server:
  port: 8013

spring:
  application:
    name: project-order
  jackson:
    default-property-inclusion: NON_NULL
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
  cloud:
    nacos:
      discovery:
        server-addr: 10.86.17.170:8848
        group: project
      config:
        server-addr: 10.86.17.170:8848
        group: project
        file-extension: yaml
        import-check:
          # no config file
          enabled: false
  config:
    import:
      - optional:nacos:redis-config.yaml?group=project&refreshEnabled=true
      - optional:nacos:bean-kafka-config.yaml?group=project&refreshEnabled=true
  #config:
  #  import:
  #   - optional:nacos:project-order.yaml
  #   - optional:nacos:datasource-config.yaml
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    #url: jdbc:mysql://10.10.0.116:32306/saas_aftersale_test?serverTimezone=Asia/Shanghai
    url: jdbc:mysql://awnmysqlricepeasespp.ck9nfg94fzy7.rds.cn-northwest-1.amazonaws.com.cn:3306/saas_aftersale_test?serverTimezone=Asia/Shanghai
    username: admin
    password: hD1ruNVonX9WOA1LNkFJ
    type: com.alibaba.druid.pool.DruidDataSource

  jpa:
    show-sql: true
    properties:
      hibernate:
        format_sql: true



mybatis-plus:
  global-config:
    db-config:
      id-type: auto
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

sentry:
  dsn: http://85293a9310fc4a8187422a7a257fc1ba@sentry.zjhuixinyun.com/8

  # Set traces_sample_rate to 1.0 to capture 100%
  # of transactions for performance monitoring.
  # We recommend adjusting this value in production.
  tracesSampleRate: 1.0
  exception-resolver-order: -2147483647

SaaS:
  url: https://pea-test.bshg.com.cn
  ak: 64e1cde3f9144bfb850b7d37c51af559

scheduler:
  init-engineer-capacity:
    # 每天22点1次
    #cron-expr: 0 0 22 * * ?
    cron-expr: 0 40 * * * ?
    day-offset-begin: 0
    day-offset-end: 14
    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

  service-msg: 0 35 11,17,15 * * ?