spring-framework/framework-docs/modules/ROOT/pages
Sam Brannen 1c87e4795d Introduce enforceOverride flag in @⁠TestBean and @⁠MockitoBean
Prior to this commit, @⁠MockitoBean could be used to either create or
replace a bean definition, but @⁠TestBean could only be used to replace
a bean definition.

However, Bean Override implementations should require the presence of
an existing bean definition by default (i.e. literally "override" by
default), while giving the user the option to have a new bean
definition created if desired.

To address that, this commit introduces a new `enforceOverride`
attribute in @⁠TestBean and @⁠MockitoBean that defaults to true but
allows the user to decide if it's OK to create a bean for a nonexistent
bean definition.

Closes gh-33613
2024-09-30 14:32:53 +02:00
..
core Replace 'e.g.' with 'for example' in documentation and comments 2024-09-26 14:11:17 +02:00
data-access Replace 'e.g.' with 'for example' in documentation and comments 2024-09-26 14:11:17 +02:00
integration Replace 'e.g.' with 'for example' in documentation and comments 2024-09-26 14:11:17 +02:00
languages Replace 'e.g.' with 'for example' in documentation and comments 2024-09-26 14:11:17 +02:00
testing Introduce enforceOverride flag in @⁠TestBean and @⁠MockitoBean 2024-09-30 14:32:53 +02:00
web Replace 'e.g.' with 'for example' in documentation and comments 2024-09-26 14:11:17 +02:00
appendix.adoc Enable table striping by default in the reference manual 2024-01-13 14:50:16 +01:00
core.adoc Remove includes 2023-05-04 15:35:05 +01:00
data-access.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
index.adoc Polishing 2024-06-07 13:45:09 +02:00
integration.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
languages.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
overview.adoc Replace 'e.g.' with 'for example' in documentation and comments 2024-09-26 14:11:17 +02:00
page-layout.adoc Remove unnecessary asciidoc attributes 2023-05-04 15:35:05 +01:00
rsocket.adoc Replace 'e.g.' with 'for example' in documentation and comments 2024-09-26 14:11:17 +02:00
testing.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
web-reactive.adoc Extract recurring asciidoc links to attributes, cleanup old doc files 2023-11-21 15:59:24 +01:00
web.adoc Fix additional WebFlux-related links 2023-11-20 16:22:35 +01:00