@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.springframework.mail.javamail.JavaMailSenderImpl.class) @ConditionalOnBean(value=org.springframework.mail.javamail.JavaMailSenderImpl.class) @ConditionalOnEnabledHealthIndicator(value="mail") @AutoConfigureBefore(value=HealthIndicatorAutoConfiguration.class) @AutoConfigureAfter(value=MailSenderAutoConfiguration.class) public class MailHealthIndicatorAutoConfiguration extends CompositeHealthIndicatorConfiguration<MailHealthIndicator,org.springframework.mail.javamail.JavaMailSenderImpl>
Constructor and Description |
---|
MailHealthIndicatorAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
HealthIndicator |
mailHealthIndicator(Map<String,org.springframework.mail.javamail.JavaMailSenderImpl> mailSenders) |
createHealthIndicator, createHealthIndicator
public MailHealthIndicatorAutoConfiguration()
@Bean @ConditionalOnMissingBean(name="mailHealthIndicator") public HealthIndicator mailHealthIndicator(Map<String,org.springframework.mail.javamail.JavaMailSenderImpl> mailSenders)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.