Spring Boot - Inversion of Control and Dependency Injection
Given this Spring bean code snippet, what will be printed when the bean is initialized?
@Component
public class MyBean {
@PostConstruct
public void init() {
System.out.println("Bean initialized");
}
}