Java Spring Boot - Bean Configuration Explained - Dependency Injection - Creating Beans

preview_player
Показать описание
In this video you can find how to create and manage spring beans using annotated classes like @Configuration or @Service and also how to create and return Spring managed beans from @Bean annotated methods. Video also includes explanation of @Primary, @Qualifier and @ConditionalOnProperty annotations. You can also find out how to access beans from context using generic approach and how to inject dependencies.

Follow //CodefForgeYT on:
Рекомендации по теме
Комментарии
Автор

Wow! Incredibly helpful explanation of the @Bean annotation and various ways to use it in a project. Earned a new sub! Thank you!

farawayskies
Автор

Would you like to discover other topics regarding Java Spring Boot Beans like Bean Scope? Let me know!

CodeForgeYT
Автор

Such great explanation and all aspects of Beans covered in just 17 mins. Just WOW

manasacharyya
Автор

Very easy to understand and a great explanation. Thanks a lot for making this video!

haseeb
Автор

Content is easy to understand, great explanation..keep up the good work.

DeepakSingh-ufvv
Автор

Very good explanation, made easy what many make it seem difficult

jonathananthony
Автор

Thank you for the clean tutorial.
In the third option when i did the following

@Autowired
VehicleService vehicleService;

I get this error:
Could not autowire. There is more than one bean of 'VehicleService' type.
Beans:
(AppConfiguration.java)
(AppConfiguration.java)

thakns.

mustafacan
Автор

Thanks for this wonderful tutorial. Is there any way to load values directly from properties and internally added to DTO getter / setter methods?

jasper
Автор

Its all good man, great tutorial. Another topic would be spring security

MiguelRomero-djxq
Автор

Thank you for such a good tutorial. Just a small question, how would you do if there is a parametrised constructor in VehicleTestService instead of @Autowired? thanks!

itlearner
Автор

Great tutorial, but please increase the font size of the IDE!

ДимитърРусков
Автор

can we always replace qualifier with conditionalonproperty annotation?

surajdhembre
Автор

Have you thought to make a really good udemy course on spring and spring boot ?

Runnable
Автор

Honestly man I keep looking into this and it talks about reducing coupling but I still don't get why all these extra steps are necessary. Is there a for dummies version available i am dying

TESkyrimizer
Автор

can you tell me the difference between Qualifier and ConditionalOnProoperty please

surajdhembre
Автор

When ur explaining you should zoom in into intellij or increase font size

shadabmohammad
Автор

isn't it easier to use primary instead of making qualifier?

susanthkakarla
Автор

very small screen, please zoom nxt time

alxdm