application.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #Web服务器端口 9100 9113
  2. server:
  3. port: 9100
  4. debug: true
  5. spring:
  6. cloud:
  7. consul:
  8. discovery:
  9. prefer-ip-address: true # ip自动注册
  10. hostname: localhost # 配置实例地址
  11. port: ${server.port}
  12. health-check-path: /actuator/health # 检测实例健康
  13. health-check-interval: 10s # 每隔10s检查
  14. register: true # 自动注册
  15. service-name: ${spring.application.name} # 实例名称
  16. instance-id: ${spring.application.name}:${server.port}
  17. host: ${ApplicationCenter.url}
  18. port: ${ApplicationCenter.port}
  19. #kafka
  20. stream:
  21. kafka:
  22. binder:
  23. brokers: ${Kafka.brokers}
  24. replication-factor: 1
  25. bindings:
  26. userLogStreamConsumer-in-0:
  27. destination: UserLogStream
  28. group: ${project.artifactId}
  29. unionFrictionChangeStream-in-0:
  30. destination: UnionFrictionStateStream
  31. group: ${project.artifactId}
  32. weChatMiniAppPayStreamConsumer-in-0:
  33. destination: WeChatAppMiniPayStream
  34. group: ${project.artifactId}
  35. function: #注意:此处有调整
  36. definition: userLogStreamConsumer;unionFrictionChangeStream;weChatMiniAppPayStreamConsumer
  37. bus:
  38. enabled: true
  39. #配置zipkin链路追踪客户端
  40. zipkin:
  41. base-url: ${Zipkin.baseUrl}
  42. enabled: true
  43. sender:
  44. type: web
  45. sleuth:
  46. sampler:
  47. probability: ${Zipkin.sampler.probability}
  48. thymeleaf:
  49. suffix: .html
  50. mode: HTML
  51. prefix: classpath:/templates/
  52. cache: false
  53. encoding: UTF-8
  54. #调试或者输出日志
  55. logging:
  56. file:
  57. name: logs/${project.artifactId}.log