Spring Boot - Inversion of Control and Dependency Injection
What is wrong with this Spring Boot code snippet that uses IoC?
@Component
public class Service {
private Repository repo;
public Service() {
repo = new Repository();
}
}