The bean "componentA" will be built after "componentB".
@Bean @DependsOn({ "componentB" }) public ComponentA componentA(){ // ... } @Bean public ComponentB componentB(){ // ... }
Last updated 5 years ago
Was this helpful?