Add placeholder

The placeholder is mentioned in the kafkaConsumer.java but didn't defined in the applications.prop. So we need to defined that.

Current exception is as follow.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kafkaConsumer' defined in file [/Users/mac/Library/Mobile Documents/com~apple~CloudDocs/development/kafka-poc/producer/target/classes/com/ef/kafka/embedded/KafkaConsumer.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'test.topic' in value "${test.topic}"
This commit is contained in:
waqasakramef 2022-04-19 13:22:22 +05:00 committed by GitHub
parent 66f829cd8d
commit c53a703587
1 changed files with 2 additions and 1 deletions

View File

@ -13,4 +13,5 @@ monitor.topic.name=baeldung
# monitoring - simulation
monitor.producer.simulate=true
monitor.consumer.simulate=true
monitor.kafka.consumer.groupid.simulate=baeldungGrpSimulate
monitor.kafka.consumer.groupid.simulate=baeldungGrpSimulate
test.topic=testtopic1