@Configuration @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(org.springframework.mail.javamail.JavaMailSenderImpl mailSender) |
Modifier and Type | Method and Description |
---|---|
void |
validateConnection() |
public MailSenderValidatorAutoConfiguration(org.springframework.mail.javamail.JavaMailSenderImpl mailSender)
@PostConstruct public void validateConnection()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.