I have a toml file being used to configure an application that uses Spring framework's KafkaListener annotation with the following signature:
@KafkaListener(id = "id0", topics = "some.hard.coded.topic.name")
I have a configuration manager class that reads a TOML file and configures various application settings based on the environment the app is running in. One of these is the topic to listen to. However, I do not know how I can pass this in to the Kafka Listener annotation. My understanding is that this can be done using SPEL in conjunction with yml files but I'm kind of locked in to using TOML here. Can anyone advise?