mirror of
https://github.com/hwanny1128/HGZero.git
synced 2025-12-06 07:56:24 +00:00
fix: EventHubPublisher에 @Primary 추가하여 EventHub 우선 사용 보장
This commit is contained in:
parent
0d56824fe8
commit
cdae3dee7e
@ -16,6 +16,7 @@ import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.context.annotation.Primary;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
@ -23,6 +24,7 @@ import org.springframework.stereotype.Component;
|
||||
* Azure EventHub를 통한 이벤트 발행
|
||||
*/
|
||||
@Component
|
||||
@Primary
|
||||
@Slf4j
|
||||
@org.springframework.boot.autoconfigure.condition.ConditionalOnBean(name = "eventProducer")
|
||||
public class EventHubPublisher implements EventPublisher {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user