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 |
||
---|---|---|
.. | ||
ctx-management | ||
aot.adoc | ||
application-events.adoc | ||
bean-overriding.adoc | ||
bootstrapping.adoc | ||
ctx-management.adoc | ||
executing-sql.adoc | ||
fixture-di.adoc | ||
key-abstractions.adoc | ||
parallel-test-execution.adoc | ||
support-classes.adoc | ||
tel-config.adoc | ||
test-execution-events.adoc | ||
tx.adoc | ||
web-scoped-beans.adoc |