#Web服务器端口 9100 9113
server:
  port: 9100

debug: true

spring:
  cloud:
    consul:
      discovery:
        prefer-ip-address: true # ip自动注册
        hostname: localhost    # 配置实例地址
        port: ${server.port}
        health-check-path: /actuator/health  # 检测实例健康
        health-check-interval: 10s   # 每隔10s检查
        register: true  # 自动注册
        service-name: ${spring.application.name} # 实例名称
        instance-id: ${spring.application.name}:${server.port}
      host: ${ApplicationCenter.url}
      port: ${ApplicationCenter.port}


    #kafka
    stream:
      kafka:
        binder:
          brokers: ${Kafka.brokers}
          replication-factor: 1
      bindings:
        userLogStreamConsumer-in-0:
          destination: UserLogStream
          group: ${project.artifactId}
        unionFrictionChangeStream-in-0:
          destination: UnionFrictionStateStream
          group: ${project.artifactId}
        weChatMiniAppPayStreamConsumer-in-0:
          destination: WeChatAppMiniPayStream
          group: ${project.artifactId}
        weChatMiniAppReFundStreamConsumer-in-0:
          destination: WeChatAppMiniRefundStream
          group: ${project.artifactId}
        chinaumsSenselessSignStreamConsumer-in-0:
          destination: ChinaumsSenselessSignStream
          group: ${project.artifactId}
        chinaumsSenselessPayStreamConsumer-in-0:
          destination: ChinaumsSenselessPayStream
          group: ${project.artifactId}
    function: #注意：此处有调整
      definition: userLogStreamConsumer;unionFrictionChangeStream;weChatMiniAppPayStreamConsumer;weChatMiniAppReFundStreamConsumer;chinaumsSenselessSignStreamConsumer;chinaumsSenselessPayStreamConsumer

    bus:
      enabled: true
  #配置zipkin链路追踪客户端
  zipkin:
    base-url: ${Zipkin.baseUrl}
    enabled: true
    sender:
      type: web
  sleuth:
    sampler:
      probability: ${Zipkin.sampler.probability}

  thymeleaf:
    suffix: .html
    mode: HTML
    prefix: classpath:/templates/
    cache: false
    encoding: UTF-8





#调试或者输出日志
logging:
  file:
    name: logs/${project.artifactId}.log
