Spring Boot - Inversion of Control and Dependency Injection
Consider this Spring Boot code snippet:
What problem will occur when the application starts?
@Component
public class ServiceA {
@Autowired
private ServiceB serviceB;
}
@Component
public class ServiceB {
@Autowired
private ServiceA serviceA;
}What problem will occur when the application starts?
