Interdependence
Bean Depends on Another
The bean "componentA" will be built after "componentB".
@Bean
@DependsOn({ "componentB" })
public ComponentA componentA(){
// ...
}
@Bean
public ComponentB componentB(){
// ...
}
Last updated
Was this helpful?