Disable more @Bean method proxying

Previously, due to a quirk in Spring Framework, it was necessary to use bean method
proxying in @Configuration classes that define one or more FactoryBeans. This quirk has
now been addressed so this commit disables bean method proxying where it is now no longer
needed.

Closes gh-16533
This commit is contained in:
Andy Wilkinson
2019-05-10 10:16:22 +01:00
parent fddc8bd8ef
commit 552345fcd1
3 changed files with 5 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ public class TestRestTemplateContextCustomizerWithFactoryBeanTests {
assertThat(this.restTemplate).isNotNull();
}
@Configuration
@Configuration(proxyBeanMethods = false)
@ComponentScan("org.springframework.boot.test.web.client.scan")
static class TestClassWithFactoryBean {