mirror of
https://github.com/hwanny1128/HGZero.git
synced 2025-12-06 06:46:24 +00:00
Fix: EventHub 설정 조건 수정으로 실제 이벤트 발행 활성화
문제: - @ConditionalOnExpression의 SpEL 표현식 오류로 EventHubConfig가 활성화되지 않음 - NoOpEventPublisher가 대신 사용되어 Event Hub로 메시지가 발행되지 않음 해결: - @ConditionalOnProperty 사용으로 변경 - eventhub.connection-string 속성 존재 여부로 Bean 활성화 제어 영향: - EventHub 설정이 있을 때 EventHubPublisher가 정상 활성화됨 - 회의 시작/종료, Todo 할당 등의 이벤트가 Event Hub로 발행됨 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
b628013adf
commit
eb8818494f
@ -15,7 +15,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
*/
|
||||
@Configuration
|
||||
@Slf4j
|
||||
@org.springframework.boot.autoconfigure.condition.ConditionalOnExpression("'${eventhub.connection-string:}'.length() > 0")
|
||||
@ConditionalOnProperty(name = "eventhub.connection-string")
|
||||
public class EventHubConfig {
|
||||
|
||||
@Value("${eventhub.connection-string}")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user