Spring Boot - Inversion of Control and Dependency Injection
Examine the following Spring component:
What is the issue with this code?
@Component
public class Processor {
@Autowired
private Helper helper;
public Processor() {
System.out.println(helper.process());
}
}What is the issue with this code?
