[BAEL-7199] Override bootstrap servers property (#15708)
This commit is contained in:
parent
f29936791c
commit
6328bf349e
|
@ -1,4 +1,4 @@
|
|||
spring.kafka.bootstrap-servers=localhost:9092,localhost:9093,localhost:9094,localhost:9095
|
||||
spring.kafka.bootstrap-servers=localhost:9092,localhost:9093,localhost:9094
|
||||
message.topic.name=baeldung
|
||||
long.message.topic.name=longMessage
|
||||
greeting.topic.name=greeting
|
||||
|
|
|
@ -26,7 +26,8 @@ import com.baeldung.spring.kafka.dlt.listener.PaymentListenerDltRetryOnError;
|
|||
import com.baeldung.spring.kafka.dlt.listener.PaymentListenerNoDlt;
|
||||
import org.springframework.test.context.ActiveProfiles;
|
||||
|
||||
@SpringBootTest(classes = KafkaDltApplication.class)
|
||||
@SpringBootTest(classes = KafkaDltApplication.class,
|
||||
properties = "spring.kafka.bootstrap-servers=localhost:9095")
|
||||
@EmbeddedKafka(
|
||||
partitions = 1,
|
||||
brokerProperties = { "listeners=PLAINTEXT://localhost:9095", "port=9095" },
|
||||
|
|
|
@ -21,7 +21,8 @@ import org.springframework.kafka.test.context.EmbeddedKafka;
|
|||
import org.springframework.kafka.test.utils.ContainerTestUtils;
|
||||
import org.springframework.test.context.ActiveProfiles;
|
||||
|
||||
@SpringBootTest(classes = KafkaMultipleTopicsApplication.class)
|
||||
@SpringBootTest(classes = KafkaMultipleTopicsApplication.class,
|
||||
properties = "spring.kafka.bootstrap-servers=localhost:9099")
|
||||
@EmbeddedKafka(partitions = 1, brokerProperties = { "listeners=PLAINTEXT://localhost:9099", "port=9099" })
|
||||
@ActiveProfiles("multipletopics")
|
||||
public class KafkaMultipleTopicsIntegrationTest {
|
||||
|
|
Loading…
Reference in New Issue