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:
djeon 2025-10-30 16:24:46 +09:00
parent b628013adf
commit eb8818494f

View File

@ -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}")