| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #Web服务器端口
- server:
- port: 9000
- debug: true
- spring:
- application:
- name: fullCardServer
- profiles:
- active: dev
- 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: 192.168.0.104:8500
- port: 8500
- #kafka
- stream:
- kafka:
- binder:
- brokers: 192.168.0.104:9092
- replication-factor: 1
- bindings:
- userLogStreamConsumer-in-0:
- destination: UserLogStream
- group: FullCardServer
- function: #注意:此处有调整
- definition: userLogStreamConsumer
- bus:
- enabled: true
- #配置zipkin链路追踪客户端
- zipkin:
- base-url: http://192.168.0.104:9411
- enabled: true
- sender:
- type: web
- sleuth:
- sampler:
- probability: 0.01
- thymeleaf:
- suffix: .html
- mode: HTML
- prefix: classpath:/templates/
- cache: false
- encoding: UTF-8
- #调试或者输出日志
- logging:
- file:
- name: logs/FullCardServer.log
|