spring:
  main:
    allow-circular-references: true #允许循环依赖
  application:
    name: outpatient-batch
    # redis 配置
  redis:
    enable: false # 开启redis
    host: @redis.host@
    port: @redis.port@
  jpa:
    hibernate:
      ddl-auto: none
      naming-strategy: org.hibernate.cfg.EJB3NamingStrategy
    show-sql: true
    database-platform: org.hibernate.dialect.MySQL5Dialect
  data:
    jpa:
      repositories:
        enabled: true
  # datasource 配置
  datasource:
    ywtcenter:
      enable: true
      jdbcUrl: @db.ywtcenter.url@
      driver-class-name: com.mysql.jdbc.Driver
      username: @db.ywtcenter.username@
      password: @db.ywtcenter.password@
      initialSize: 10
      maxActive: 2000
      minIdle: 1
      maximumPoolSize: 200
      autoCommit: true
      poolName: HikariPool_center
      maxLifetime: 1800000
      connectionTestQuery: SELECT 1
#dubbo 相关配置
dubbo:
  application:
    logger: slf4j
    qos-enable: false
    register-mode: instance
  registry:
    address: nacos://@nacos.address@
    parameters:
      namespace: @nacos.namespace@
  protocol:  #协议  消费者端可不配置
    name: tri  #远triple协议
    port: 20011  #端口
  consumer:
    #远程服务调用重试次数，不包括第一次调用，不需要重试请设为0
    retries: 0
    check: false
#xxl 配置
xxl:
  job:
    admin:
      addresses: http://192.168.3.206:8081/xxl-job-admin/
    executor:
      appname: prescription-batch
      address:
      ip:
      port: 9999
      logpath: /home/midware/xxl-job/jobhandler
      logretentiondays: 30
    accessToken: default_token





