File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/com/gucci/blog_service/kafka/producer Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2020public class KafkaProducerConfig {
2121 private Map <String , Object > producerConfigs () {
2222 Map <String , Object > props = new HashMap <>();
23- props .put (ProducerConfig .BOOTSTRAP_SERVERS_CONFIG , "localhost:9092" ); // 필요시 수정
23+ // props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092"); // 필요시 수정
24+ props .put (ProducerConfig .BOOTSTRAP_SERVERS_CONFIG , "kafka.kafka.svc.cluster.local:9092" ); // 필요시 수정
2425 props .put (ProducerConfig .KEY_SERIALIZER_CLASS_CONFIG , StringSerializer .class );
2526 props .put (ProducerConfig .VALUE_SERIALIZER_CLASS_CONFIG , org .springframework .kafka .support .serializer .JsonSerializer .class );
2627 props .put (JsonSerializer .ADD_TYPE_INFO_HEADERS , false );
You can’t perform that action at this time.
0 commit comments