Difference between @Autowired, @Inject & @Resource | Important Spring annotation Interview Question
ฝัง
- เผยแพร่เมื่อ 16 ม.ค. 2020
- #Autowired #Vs #Inject #Vs #Resource
► SUBSCRIBE & LIKE!!
► Important Information and code guide available bottom of the Description section
► Official Email Id: techtalk.debu@gmail.com
► Download the sample java microservice application :
github.com/admindebu/In-Memor...
► Follow on Facebook: / techtalkdebu
► Follow on LinkedIn: / debu-paul
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
► Here is our amazing playlist for Core Java, Spring MVC/Boot, Git and Microservice
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. Core Java :: • Exception in Java deta...
2. Core Java Important Interview QA : • Core Java Interview Qu...
3. Spring MVC & Spring Boot :: • Quick Start Spring Boo...
4. Micro Services :: • Micro Service - Monoli...
5. Git/GitHub :: • VCS - What is GitHub a...
6. AWS :: • AWS - SpringBoot file ...
7. Spring Security & OAuth : • Difference Between Aut...
8. Coding and Programming : • Program Logic/Algorith...
9. Raspberry PI & Arduino : • What is Raspberry Pi |...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Watch my "Most Watched Videos"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
► HTTPS & HTTPS protocol :: • What is HTTP Protocol ...
Thanks & Regards,
Debu Paul - วิทยาศาสตร์และเทคโนโลยี
Thank you for explaining. I have been using @Autowired and not the other two annotations in development. After watching, I now know what @Resource and @Inject is B-)
Thank you for the feedback
hi
Thank you for this presentation.
I think Dependency injection is introduced by JSR 330 not jsr 300 as you mentionne in the video.
am I missing something ?
No, you are correct .... Depenedency injection @Inject annotation introduce jsr 330... And spring 2.5 introduce @Autowired... Anyhow, but be I did some mistake while speaking about jsr version... Thank you for the info and Catch
Thanks for the explanation.
You are most welcome
Nayabba antasepu cheppu inject artamkale
Ok