Spring Boot - Inversion of Control and Dependency Injection
Which of the following is the correct way to declare a Spring component class?
@Component annotation must be placed above a class declaration, like @Component public class MyService {}.@Service or @Component is invalid since components must be classes.@Component above a class, not a method [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions