Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
Deploy Docs / Dispatch docs deployment (push) Waiting to run
Details
Prior to this commit, the BeanOverrideBeanFactoryPostProcessor rejected any attempt to override a non-singleton bean; however, due to interest from the community, we have decided to provide support for overriding non-singleton beans via the Bean Override mechanism — for example, when using @MockitoBean, @MockitoSpyBean, and @TestBean. With this commit, we now support Bean Overrides for non-singletons: for standard JVM runtimes as well as AOT processing and AOT runtimes. This commit also documents that non-singletons will effectively be converted to singletons when overridden and logs a warning similar to the following. WARN: BeanOverrideBeanFactoryPostProcessor - Converting 'prototype' scoped bean definition 'myBean' to a singleton. See gh-33602 See gh-32933 See gh-33800 Closes gh-35574 |
||
---|---|---|
.. | ||
annotation-activeprofiles.adoc | ||
annotation-aftertransaction.adoc | ||
annotation-beforetransaction.adoc | ||
annotation-bootstrapwith.adoc | ||
annotation-commit.adoc | ||
annotation-contextconfiguration.adoc | ||
annotation-contextcustomizerfactories.adoc | ||
annotation-contexthierarchy.adoc | ||
annotation-dirtiescontext.adoc | ||
annotation-disabledinaotmode.adoc | ||
annotation-dynamicpropertysource.adoc | ||
annotation-mockitobean.adoc | ||
annotation-recordapplicationevents.adoc | ||
annotation-rollback.adoc | ||
annotation-sql.adoc | ||
annotation-sqlconfig.adoc | ||
annotation-sqlgroup.adoc | ||
annotation-sqlmergemode.adoc | ||
annotation-testbean.adoc | ||
annotation-testexecutionlisteners.adoc | ||
annotation-testpropertysource.adoc | ||
annotation-webappconfiguration.adoc |