I have below some of the properties in the HashMap as key value pair
topic1.topicname =testTopic1
topic1.listenerid=id1
topic1.max.poll.records=5
topic2.topicname =testTopic2
topic2.listenerid=id2
topic2.max.poll.records=5
And I want to convert the above key value pair into java pojo configuration properties as below
Map<String, CustomKafkaListenerProperty> props;
with key as topic1 and topic2, and value as corresponding CustomKafkaListenerProperty pojo
the attributes in CustomKafkaListenerProperty Pojo as below
private String topicname;
private String listenerId;
private String maxPollRecords;
Need help on how to do this with spring @ConfigurationProperties