application.yaml 1.29 KB
server:
  port: 8012

pre-dispatch:
  cron:
    expr: 0 */5 8-18 * * ?

spring:
  application:
    name: project-pre-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

  config:
    import:
     - optional:nacos:project-order.yaml
  #   - optional:nacos:datasource-config.yaml
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://127.0.0.1:3388/saas_aftersale_test?serverTimezone=UTC
    username: root
    password: 123456
    type: com.alibaba.druid.pool.DruidDataSource

  redis:
    database: 0
    host: 127.0.0.1
    port: 6379
    password: 123456
    jedis:
      pool:
        max-active: 32
        min-idle: 0
        max-idle: 8
        max-wait: -1


  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-order-group: default
    grouplist:
      default: 127.0.0.1:8091