adspace


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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is lazy class?

490


How can you inject java collection in spring?

518


What is difference between @controller and @restcontroller in spring?

556