What does @component do in spring boot? : Spring Boot



What does @component do in spring boot? : Spring Boot..

Answer / Brahamgyan Singh

@Component is a component scan annotation in Spring Boot, which indicates that the class using it is a Spring-managed component. This means that Spring will automatically detect and manage the lifecycle of this component as a bean.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What does @repository do in spring?

1 Answers  


What are spring boot starter projects? : Spring Boot

1 Answers  


What is the role of web.xml in spring mvc and where is it located?

1 Answers  


What are the various components of a spring application?

1 Answers  


What is spring bean life cycle?

1 Answers  


What is spring architecture?

1 Answers  


Why do we use aop in spring?

1 Answers  


What is the structure of spring framework?

1 Answers  


What is stateless bean in spring?

1 Answers  


Does applicationcontext support setter dependency injection?

1 Answers  


What is spring context module?

1 Answers  


What is spring listener?

1 Answers  


Categories