File tree Expand file tree Collapse file tree 2 files changed +5
-45
lines changed
back/src/main/java/com/back/global/mail Expand file tree Collapse file tree 2 files changed +5
-45
lines changed Original file line number Diff line number Diff line change 11package com .back .global .mail ;
22
33import org .springframework .beans .factory .annotation .Value ;
4+ import org .springframework .boot .autoconfigure .AutoConfiguration ;
5+ import org .springframework .boot .autoconfigure .AutoConfigureOrder ;
6+ import org .springframework .boot .autoconfigure .condition .ConditionalOnMissingBean ;
47import org .springframework .context .annotation .Bean ;
58import org .springframework .context .annotation .Configuration ;
69import org .springframework .context .annotation .Profile ;
10+ import org .springframework .core .Ordered ;
711import org .springframework .mail .javamail .JavaMailSender ;
812import org .springframework .mail .javamail .JavaMailSenderImpl ;
913
1014import java .util .Properties ;
1115
1216@ Configuration
1317@ Profile ("prod" )
18+ @ AutoConfigureOrder (Ordered .HIGHEST_PRECEDENCE )
1419public class MailConfig {
1520
1621 @ Value ("${spring.mail.host}" )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments