caused by: org.apache.common.config.ConfigException: No resolvable bootstrap url given in bootstrap.server
While I am adding this in the configuration:
@Configuration
class TopicConfiguration {
private ConsumarFactory<String, String> creteConsumer(String id) {
Map<String, String> config = new hashMap<>();
config.put(ConsumerConfig.BOOTSTRAP_SERVER_CONFIG, configProperties.getBootstrapServers);
When I am adding it like
config.put(ConsumerConfig.BOOTSTRAP_SERVER_CONFIG, “localhost://8080”));
it is workoing but I have to get the bootstrap servers from properties file
pooja ghosh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.