s/(init|destroy)MethodName/(init|destroy)Method/ to reflect recent changes made when porting @Bean to Spring core.
This commit is contained in:
parent
a7acea2329
commit
b118aae971
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue