application.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #Web?????
  2. server:
  3. port: 9403
  4. #??????
  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. function:
  26. definition: userLogStreamConsumer;vipUserStreamConsumer;orderStreamConsumer
  27. bindings:
  28. userLogStreamConsumer-in-0:
  29. destination: UserLogStream
  30. group: ${project.artifactId}
  31. vipUserStreamConsumer-in-0:
  32. destination: VipUserStream
  33. group: ${project.artifactId}
  34. orderStreamConsumer-in-0:
  35. destination: OrderStream
  36. group: ${project.artifactId}
  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. wechat:
  49. merchantId: 1682408108
  50. privateKey: apiclientkey.pem
  51. merchantSerialNumber: 4DE673EE8CFEEAABD8AC6A4E2FC02FCD40BB54B5
  52. apiV3Key: ExrdXlCSbr9R61pU2iacmz0T5JxuLHhL
  53. # appid: 1111
  54. transferSceneId: 1000
  55. cwechat:
  56. appid: wx3be1d6d84d46cdf7
  57. secret: 4401df45d409cbf28560e87c4c21b4bf
  58. swechat:
  59. appid: wx023ad5ebbcbf0353
  60. secret: 0d587023ea18ee00eff505f27a2aec22
  61. #????????
  62. logging:
  63. file:
  64. name: logs/${project.artifactId}.log
  65. #debug: true