Spring Framwork Core Technologies v5.3.36 SNAPSHOT
@Configuration vs “lite” @Bean mode? When @Bean methods are declared within classes that are not annotated with @Configuration, they are referred to as being processed in a “lite” mode. Bean methods methods declared in a @Component or even in a plain old class are considered to be “lite”, with a different primary purpose of the containing class and a @Bean method being a sort of bonus there. For example scenarios, @Bean methods are a general-purpose factory method mechanism. Unlike full @Configuration, lite @Bean methods cannot declare inter-bean dependencies. Instead, they operate on their containing component’s0 码力 | 485 页 | 6.31 MB | 1 年前3Spring Framework 3.2.0 Changelog
(SPR-8728) * fix regression in ClassPathResource descriptions (SPR-9413) * improve documentation of @Bean 'lite' mode (SPR-9401) * improve documentation of annotated class support in the TestContext framework0 码力 | 28 页 | 80.40 KB | 1 年前3Spring Framework 3.2.1 Changelog
(SPR-8728) * fix regression in ClassPathResource descriptions (SPR-9413) * improve documentation of @Bean 'lite' mode (SPR-9401) * improve documentation of annotated class support in the TestContext framework0 码力 | 30 页 | 84.59 KB | 1 年前3Spring Framework Reference Documentation v4.3.2
Full @Configuration vs 'lite' @Beans mode? When @Bean methods are declared within classes that are not annotated with @Configuration they are referred to as being processed in a 'lite' mode. For example, considered 'lite'. Unlike full @Configuration, lite @Bean methods cannot easily declare inter-bean dependencies. Usually one @Bean method should not invoke another @Bean method when operating in 'lite' mode invoked multiple times and helps to reduce subtle bugs that can be hard to track down when operating in 'lite' mode. The @Bean and @Configuration annotations will be discussed in depth in the sections below0 码力 | 1311 页 | 4.07 MB | 1 年前3Spring Framework 3.2.4 Changelog
(SPR-8728) * fix regression in ClassPathResource descriptions (SPR-9413) * improve documentation of @Bean 'lite' mode (SPR-9401) * improve documentation of annotated class support in the TestContext framework0 码力 | 33 页 | 93.28 KB | 1 年前3Spring Framework 3.2.3 Changelog
(SPR-8728) * fix regression in ClassPathResource descriptions (SPR-9413) * improve documentation of @Bean 'lite' mode (SPR-9401) * improve documentation of annotated class support in the TestContext framework0 码力 | 32 页 | 91.11 KB | 1 年前3Spring Framework 3.2.2 Changelog
(SPR-8728) * fix regression in ClassPathResource descriptions (SPR-9413) * improve documentation of @Bean 'lite' mode (SPR-9401) * improve documentation of annotated class support in the TestContext framework0 码力 | 31 页 | 89.03 KB | 1 年前3Spring Framework 3.2.6 Changelog
(SPR-8728) * fix regression in ClassPathResource descriptions (SPR-9413) * improve documentation of @Bean 'lite' mode (SPR-9401) * improve documentation of annotated class support in the TestContext framework0 码力 | 34 页 | 97.82 KB | 1 年前3Spring Framework 3.2.7 Changelog
(SPR-8728) * fix regression in ClassPathResource descriptions (SPR-9413) * improve documentation of @Bean 'lite' mode (SPR-9401) * improve documentation of annotated class support in the TestContext framework0 码力 | 35 页 | 99.84 KB | 1 年前3Spring Framework 3.2.5 Changelog
(SPR-8728) * fix regression in ClassPathResource descriptions (SPR-9413) * improve documentation of @Bean 'lite' mode (SPR-9401) * improve documentation of annotated class support in the TestContext framework0 码力 | 33 页 | 96.00 KB | 1 年前3
共 25 条
- 1
- 2
- 3