KafkaContainer - how to read kafka container port as property in Spring Boot after start() / how to configure Kafka port before starting

前端 未结 0 1298
既然无缘
既然无缘 2020-12-01 01:26

I am doing integration testing with KafkaContainer; after starting the container, the port is chosen randomly.

I can get the port by container.getB

相关标签:
回答
  • 消灭零回复
提交回复
热议问题