Polish "Restore proxying of @Bean methods in @TestConfiguration"

See gh-18675
This commit is contained in:
Stephane Nicoll
2019-10-22 09:10:32 +02:00
parent 7faa606920
commit fd94608f73
13 changed files with 30 additions and 27 deletions

View File

@@ -40,7 +40,7 @@ import org.springframework.core.annotation.AliasFor;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Configuration(proxyBeanMethods = false)
@Configuration
@TestComponent
public @interface TestConfiguration {
@@ -71,8 +71,8 @@ public @interface TestConfiguration {
* individually like when declared on non-{@code @Configuration} classes, a.k.a.
* "@Bean Lite Mode" (see {@link Bean @Bean's javadoc}). It is therefore behaviorally
* equivalent to removing the {@code @Configuration} stereotype.
* @since 2.2.1
* @return whether to proxy {@code @Bean} methods
* @since 2.2.1
*/
@AliasFor(annotation = Configuration.class)
boolean proxyBeanMethods() default true;