application.yml 1.3 KB

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