diff --git a/spring-framework-reference/src/beans.xml b/spring-framework-reference/src/beans.xml index 7fbb8e66056..bf759bf44bf 100644 --- a/spring-framework-reference/src/beans.xml +++ b/spring-framework-reference/src/beans.xml @@ -5567,11 +5567,11 @@ public class Bar { @Configuration public class AppConfig { - @Bean(initMethodName = "init") + @Bean(initMethod = "init") public Foo foo() { return new Foo(); } - @Bean(destroyMethodName="cleanup") + @Bean(destroyMethod = "cleanup") public Bar bar() { return new Bar(); }