mirror of
https://github.com/hwanny1128/HGZero.git
synced 2025-12-06 12:36:23 +00:00
문제: - @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>
notification 메일 알림발송
아래와 같이 메일발송 Email List를 loop돌려서 event 객체를 생성한 후에 publishNotificationRequest 메소드를 통해 Event 메세지 발행하시면 됩니다.
// 각 참석자에게 개별 알림 이벤트 발행
for (String participantEmail : participants) {
NotificationRequestEvent event = NotificationRequestEvent.builder()
.notificationType("MEETING_INVITATION")
.recipientEmail(participantEmail)
.recipientId(participantEmail)
.recipientName(participantEmail)
.title("회의 초대")
.message(String.format("'%s' 회의에 초대되었습니다. 일시: %s, 장소: %s",
title, startTime, location))
.relatedEntityId(meetingId)
.relatedEntityType("MEETING")
.requestedBy(organizerId)
.requestedByName(organizerName)
.eventTime(LocalDateTime.now())
.build();
publishNotificationRequest(event);
}