What is the use of @component in spring?



What is the use of @component in spring?..

Answer / Rajani Sachan

@Component is a Spring-defined stereotype annotation that can be used to denote any Spring-managed bean, whether it's a simple POJO or a more complex component. When applied to a class, the component scan mechanism in Spring will automatically register and manage the component.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

Explain the different types of spring container?

1 Answers  


What are modules in spring?

1 Answers  


What is difference between spring boot and spring mvc? : Spring Boot

1 Answers  


What companies use spring boot? : Spring Boot

1 Answers  


What is the typical bean life cycle in spring bean factory container?

1 Answers  


What is the ioc in spring?

1 Answers  


What is aop? And how the aop used in spring?

1 Answers  


Can we have more than one application context in spring?

1 Answers  


What is the use of @springboottest?

1 Answers  


What does a framework means?

1 Answers  


What are the design patterns used in spring boot? : Spring Boot

1 Answers  


How to achieve localization in spring mvc applications?

1 Answers  


Categories