Important Interview Question of Spring annotation : @Component, @Controller, @Repository & @Service

Описание к видео Important Interview Question of Spring annotation : @Component, @Controller, @Repository & @Service

#Component #Controller #Repository #Service

► SUBSCRIBE & LIKE!!

► Important Information and code guide available bottom of the Description section

► Official Email Id: [email protected]
► Download the sample java microservice application :
https://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 detail explanation ...  
2. Core Java Important Interview QA :    • Core Java Interview Questions - Diffe...  
3. Spring MVC & Spring Boot ::    • Quick Start Spring Boot project with ...  
4. Micro Services ::    • Micro Service - Monolithic vs Micro s...  
5. Git/GitHub ::    • VCS - What is GitHub and Create an Ac...  
6. AWS ::    • AWS - SpringBoot file Upload, Delete ...  
7. Spring Security & OAuth :    • Difference Between Authentication & A...  
8. Coding and Programming :    • Program Logic/Algorithm - Basic Calcu...  
9. Raspberry PI & Arduino :    • What is Raspberry Pi | Basic of Raspb...  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Watch my "Most Watched Videos"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
► HTTPS & HTTPS protocol ::    • What is HTTP Protocol and Different H...  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Information
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From Spring 2.5 annotation-based dependency injection was introduced, which automatically scans and registers classes as Spring bean which is annotated using @Component annotation.

This means you don't declare that bean using the bean tag and inject the dependency, it will be done automatically by Spring. This functionality was enabled and disabled using context:component-scan tag.

Now that you know what does @Component annotation does let's see what does @Service, @Controller, and @Repository annotation do.

They are nothing but the specialized form of @Component annotation for certain situations. Instead of using @Component on a controller class in Spring MVC, we use @Controller, which is more readable and appropriate.

GitHub Account for Free Code download: https://github.com/admindebu
Follow me on FaceBook:   / techtalkdebu  
Instagram: techtalk_debu
LinkedIn :   / debu-paul  

if you like my video, please subscribe to my channel and share the video

Thanks & Regards,
Debu Paul

Комментарии

Информация по комментариям в разработке