Loading...

@Component | Spring Annotation - @Component | @campuslearn

1311 41________

#shorts
@Component is an annotation that allows Spring to automatically detect custom beans.

In other words, without having to write any explicit code, Spring will:

1. Scan our application for classes annotated with @Component
2. Instantiate them and inject any specified dependencies into them
3. Inject them wherever needed

#springboot #spring #java #annotations #software #softwareengineer #springboottutorial #interviewtips #systemdesign #dependencyinjection #springframework #restfulapi #restfulwebservice #components #datastructureandalgorithm #datastructures

コメント