@Configuration @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()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.