• Stephane Nicoll's avatar
    Fix ordering of mail auto-configuration · eafee1ec
    Stephane Nicoll authored
    It is not possible to put `@Order` on nested `@Configuration` classes and
    there is no ordering guarantee of them anyway. Previously, we relied on
    the declaration order to check if the `test-connection` flag should apply
    to an existing `JavaMailSenderImpl`. It turns out at the
    `JavaMailSenderImpl` bean was not created at that time and so the
    evaluation was wrongly failing.
    
    To make that more explicit, that code is now in its own
    auto-configuration with an explicit `@AutoConfigureAfter` declaration.
    
    Since the JNDI support could be affected by the exact same issue, it has
    been restored to its own package private configuration class that is
    processed before the  `MailSenderAutoConfiguration` content is evaluated.
    
    Closes gh-3478
    eafee1ec
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...