Skip to content

Commit

Permalink
[Fix/#348] 프로필에 따른 메일센더 빈 미생성 문제 해결 (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
belljun3395 authored Aug 17, 2024
1 parent 7d01f3c commit b648be8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ package com.few.email.sender.provider
import com.amazonaws.services.simpleemail.AmazonSimpleEmailService
import com.amazonaws.services.simpleemail.model.*
import io.github.oshai.kotlinlogging.KotlinLogging
import org.springframework.context.annotation.Primary
import org.springframework.context.annotation.Profile
import org.springframework.stereotype.Component

@Primary
@Profile("prd")
@Component
class AwsSESEmailSendProvider(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ package com.few.email.sender.provider

import jakarta.mail.MessagingException
import jakarta.mail.internet.MimeMessage
import org.springframework.context.annotation.Profile
import org.springframework.mail.javamail.JavaMailSender
import org.springframework.mail.javamail.MimeMessageHelper
import org.springframework.stereotype.Component

@Profile("!prd")
@Component
class JavaEmailSendProvider(
private val emailSender: JavaMailSender,
Expand Down

0 comments on commit b648be8

Please sign in to comment.