• Andy Wilkinson's avatar
    Ignore scoped targets when collecting servlet context initializer beans · 4919c6f3
    Andy Wilkinson authored
    Previously, there were two problems with servlet context initializer
    beans that are a scoped proxy:
    
    1. When there's no explicit registration bean the target of the scoped
       proxy is registered rather than the proxy. This meant that the
       proxy had no effect as it was being bypassed.
    2. When there is an explicit registration bean, the registration is
       performed twice: the faulty implicit registration described above
       and explicit registration.
    
    A fix (SPR-14816) has been made in Spring Framework so that we can
    correctly determine the type of bean that will be produced by a
    scoped proxy's factory bean. That change, coupled with the change in
    this commit that ignored beans that are the target of a scoped proxy
    addresses both of the problems described above. A single registration
    is now performed and its the scoped proxy, rather than its target,
    that is registered.
    
    Closes gh-7150
    4919c6f3
Name
Last commit
Last update
.github Loading commit data...
.mvn 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-test Loading commit data...
spring-boot-test-autoconfigure Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...