feat: 컨슈머, 프로듀서에서 모두 쓰이는 Configuration 클래스
- 현재는 Dead Letter Topic 프로듀서 Bean만 등록
This commit is contained in:
parent
b6e6484cb0
commit
c6b21da23e
@ -0,0 +1,18 @@
|
||||
package com.sangdol.consumer.infrastructure.kafka.common;
|
||||
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
@Configuration
|
||||
@RequiredArgsConstructor
|
||||
@EnableConfigurationProperties(KafkaProperties.class)
|
||||
public class CommonConfiguration {
|
||||
|
||||
@Bean
|
||||
public KafkaProperties.DeadLetterTopic deadLetterTopic(KafkaProperties kafkaProperties) {
|
||||
return kafkaProperties.getDeadLetterTopic();
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user