@Configuration(proxyBeanMethods=false) @AutoConfigureAfter(value=MailSenderAutoConfiguration.class) @ConditionalOnProperty(prefix="spring.mail", value="test-connection") @ConditionalOnSingleCandidate(value=org.springframework.mail.javamail.JavaMailSenderImpl.class) public class MailSenderValidatorAutoConfiguration extends Object
Auto configuration
for testing mail service
connectivity on startup.Constructor and Description |
---|
MailSenderValidatorAutoConfiguration(JavaMailSenderImpl mailSender) |
Modifier and Type | Method and Description |
---|---|
void |
validateConnection() |
public MailSenderValidatorAutoConfiguration(JavaMailSenderImpl mailSender)
@PostConstruct public void validateConnection()