Skip to content

Instantly share code, notes, and snippets.

@cvicens
Created January 16, 2020 17:15
Show Gist options
  • Save cvicens/37eecd91fb1537ec4cad8cbaab288d30 to your computer and use it in GitHub Desktop.
Save cvicens/37eecd91fb1537ec4cad8cbaab288d30 to your computer and use it in GitHub Desktop.
package com.redhat.his.service;
import ...
@Configuration
public class KafkaConfig {
@Value("${kafka.bootstrap-servers}")
private String kafkaBrokers;
@Value("${kafka.clientId}")
private String clientId;
@Value("${kafka.groupId}")
private String groupId;
@Value("${kafka.topic}")
private String topicName;
@Value("${kafka.security.protocol}")
private String securityProtocol;
@Value("${kafka.ssl.truststore.location}")
private String sslTruststoreLocation;
@Value("${kafka.ssl.truststore.password}")
private String sslTruststorePassword;
@Value("${kafka.ssl.keystore.location}")
private String sslKeystoreLocation;
@Value("${kafka.ssl.keystore.password}")
private String sslKeystorePassword;
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment