import org.springframework.validation.annotation.Validated;
-@ConfigurationProperties(prefix = "simple.consumer")
+@ConfigurationProperties(prefix = "juplo.consumer")
@Validated
@Getter
@Setter
-simple:
+juplo:
consumer:
topics: test
management:
bootstrap-server: ${spring.kafka.bootstrap-servers}
client-id: ${spring.kafka.client-id}
group-id: ${spring.kafka.consumer.group-id}
- topics: ${simple.consumer.topics}
+ topics: ${juplo.consumer.topics}
auto-offset-reset: ${spring.kafka.consumer.auto-offset-reset}
spring:
kafka:
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
properties = {
"spring.kafka.bootstrap-servers=${spring.embedded.kafka.brokers}",
- "simple.consumer.topics=" + TOPIC })
+ "juplo.consumer.topics=" + TOPIC })
@EmbeddedKafka(topics = TOPIC)
public class ApplicationTests
{