Spring boot @Autowired annotation with example

preview_player
Показать описание
Find the source code here -

🤑🤑 Donate
--------------------------------------
--------------------------------------
🐱‍💻 🐱‍💻 Course Links:

Spring boot and Mongodb Tutorial -

Spring boot, Hibernate, and MySQL API Tutorial -

Spring boot, JPA and MySQL API Tutorial -

RESTful web services with Nodejs, Express, Mongodb Tutorial -

Angular and Spring boot full-stack Tutorial -

Spring MVC and MyBatis/iBatis Tutorial -

JSP and Servlets Complete Tutorial for beginners -

For Business Inquiries Email @

Follow me to stay updated -

Рекомендации по теме
Комментарии
Автор

It did not explain the autowire concept at all.

aloknath
Автор

Hello, kind sir!
This was an amazing tutorial. Not only have I finally understood the autowired annotation, I have also learnt the layers: you first create an entity (the model for the object), then the service who will provide the instances of the objects, to the controllers which are called from the website through CRUD requests.
I applauded... alone in my room.
P.S.: Your donations account seems nonexistent.

nicoleta
Автор

This video does nothing but write the syntax? It seems like even you don't understand how @Autowire works?

zr
Автор

This is what i need, thank you so much bro, good luck to you 😇😇

ds
Автор

Thank you dude. This video cleared all my doubts!

ldskmain
Автор

this code works successfully without @Autowired annotion.

gurituna
Автор

Tq soo much....this video helped me a lot

gangachinnithati
Автор

What if that service had a single contructor that required an argument.. lets say String. How would the @Autowired work?

marcuscasagrande
Автор

i was expecting more detailed video but thanks

Bhatonia_Jaat
Автор

Thank you for this video! Great explanation for me. If you did not make your list static would the result of the getList method return null?

Mandih
Автор

What is different between @Autowired and new keyword???

sekhar
Автор

but what if we want to initialize the object ourself and then autowire it?

AdityaDahiya
Автор

@Autowired allows us to create a bean without using the new keyword

unknownplayer