File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,12 @@ Bean Lifecycle
2020
2121
2222Spring Annotations
23- 1. @Component - To find Spring within the component scan package that which classes are beans
24- Can also provide explicit bean id @Component("theBean")
23+ -> @Component - To find Spring within the component scan package that which classes are beans
24+ Can also provide explicit bean id @Component("theBean")
2525
26- 2. @Autowired - To let Spring find the bean implementation(s) of FortuneService
27- Selects the appropriate candidate with the help of @Qualifier
28- Creates the bean and automatically injects at (Contructor, Setter, Method, Field)
29- 3.
26+ -> @Autowired - To let Spring find the bean implementation(s) of FortuneService
27+ Selects the appropriate candidate with the help of @Qualifier
28+ Creates the bean and automatically injects at (Contructor, Setter, Method, Field)
29+ -> @Scope - Defines bean scope (Default:Singleton)
30+ -> @PostConstruct - Bean lifecycle
31+ -> @PreDestroy - Bean lifecycle
You can’t perform that action at this time.
0 commit comments