• Andy Wilkinson's avatar
    Stop a BeanPostProcessor from preventing config of packages to scan · b1833097
    Andy Wilkinson authored
    Previously, if a BeanPostProcessor bean was declared in a configuration
    class that depended on the persistence context, packages to scan would
    not be configured on the LocalContainerEntityManagerFactoryBean. This
    was due to the BeanPostProcessor bean triggering the early instantiation
    of the LCEMFB before EntityScanBeanPostProcessor, the BeanPostProcessor,
    that applies the @EntityScan configuration, had been given a chance to
    configure it.
    
    This commit updates EntityScanBeanPostProcessor to implement Ordered
    with an order of zero. This ensures that its ordering is predictable
    and that it will be driven before any unordered BeanPostProcessor. This
    means that, unless the user has specifically ordered their
    BeanPostProcessor to run before EntityScanBeanPostProcessor, 
    LCEMFB’s packages to scan will be configured as expected.
    
    Fixes gh-2478
    b1833097
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-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-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...
spring-boot-versions 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...