Junior — Senior
Dependency injection setup in Spring configuration
livecode
Task condition
In the configuration class ConfigA, it is necessary to ensure access to component A to correctly perform dependency injection (DI) in method B.
- Declare @Bean for component A in the configuration that is imported into ConfigA.
- Verify that Spring can detect bean A and pass it to ConfigA.
- Ensure that the dependency injection mechanism works without errors.