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
|
@Configuration
|
||||||
public class AppConfig {
|
public class AppConfig {
|
||||||
@Bean(initMethodName = "init")
|
@Bean(initMethod = "init")
|
||||||
public Foo foo() {
|
public Foo foo() {
|
||||||
return new Foo();
|
return new Foo();
|
||||||
}
|
}
|
||||||
@Bean(destroyMethodName="cleanup")
|
@Bean(destroyMethod = "cleanup")
|
||||||
public Bar bar() {
|
public Bar bar() {
|
||||||
return new Bar();
|
return new Bar();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue