@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.springframework.mail.javamail.JavaMailSenderImpl.class) @ConditionalOnBean(value=org.springframework.mail.javamail.JavaMailSenderImpl.class) @ConditionalOnEnabledHealthIndicator(value="mail") @AutoConfigureAfter(value=MailSenderAutoConfiguration.class) public class MailHealthContributorAutoConfiguration extends CompositeHealthContributorConfiguration<MailHealthIndicator,JavaMailSenderImpl>
Constructor and Description |
---|
MailHealthContributorAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
HealthContributor |
mailHealthContributor(Map<String,JavaMailSenderImpl> mailSenders) |
createComposite
createContributor, createIndicator
public MailHealthContributorAutoConfiguration()
@Bean @ConditionalOnMissingBean(name={"mailHealthIndicator","mailHealthContributor"}) public HealthContributor mailHealthContributor(Map<String,JavaMailSenderImpl> mailSenders)