@Configuration @AutoConfigureAfter(value=org.springframework.boot.autoconfigure.mail.MailSenderAutoConfiguration.class) @EnableConfigurationProperties(value=MailProperties.class) public class MailAutoConfiguration extends java.lang.Object
Constructor and Description |
---|
MailAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
MailService |
getDefaultMailServiceImpl()
Get an default implementation of the Mail Service interface if nothing is supplied.
|
MailService |
getJavaMailSenderMailService(org.springframework.mail.javamail.JavaMailSender javaMailSender,
MailProperties genieMailProperties)
Returns a bean for mail service impl using the Spring Mail.
|
@Bean @ConditionalOnBean(value=org.springframework.mail.javamail.JavaMailSender.class) public MailService getJavaMailSenderMailService(org.springframework.mail.javamail.JavaMailSender javaMailSender, MailProperties genieMailProperties)
javaMailSender
- An implementation of the JavaMailSender interface.genieMailProperties
- The Genie specific properties for email notifications@Bean @ConditionalOnMissingBean(value=org.springframework.mail.javamail.JavaMailSender.class) public MailService getDefaultMailServiceImpl()