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