Skip to content

Commit 0689202

Browse files
author
DESKTOP-BL7US23\architbiet
committed
arrange notes
1 parent ae45458 commit 0689202

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/notes.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ Bean Lifecycle
2020

2121

2222
Spring 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

0 commit comments

Comments
 (0)