Spring Boot - @Component, @Service, @Repository, @Configuration, @Bean, @Controller, @RestController

preview_player
Показать описание
Welcome to Simple Programming

@Component annotation marks a java class as a bean so the component-scanning mechanism of spring can pick it up and pull it into the application context

@Repository - provides a suitable need for DAO layer, it also makes unchecked exceptions thrown in the DAO layer eligible to be translated into Spring DataAccessException

@Controller - marks the class as a Spring Web MVC controller

@Configuration - marks that the class contains one or more beans defined inside

@Bean - is used to explicitly declare a single bean, rather than letting Spring do it automatically for us
Рекомендации по теме
Комментарии
Автор

Respect....!!! saved hours of searching, to the point and clear explanation

pdukale
Автор

Damn!! Cleared the doubt within 3 mins.

atharvakale
Автор

thanks for the video. very informative

MunniDivya
Автор

Dear Sir can I get this project anywhere on Google or any website.
I mean the entire student project

khursheedrizvi
Автор

Thanks for the video.
You can just say "at", what is "at the rate"? this is an @ at symbol

mostinho
Автор

I understand @configuration anation but inside the controller also you used multiple beans how its works

muthumkp
Автор

This is helpful but it could have been more helpful if you would have showed the custom code usage of @Bean

jasper
Автор

good video, ..
Though I got distracted with the At the rater something.

jongtorralba
Автор

"at the rate of" - 50% of video

Explore-world-
Автор

What is Bean ? Please give me the definition of Bean

kuldeepsahoo
Автор

Nice video! Respect! :) Though after watching it, I can talk with your accent, so try to watch some american videos and you should be able talk like me. ;)

liudasstonys
Автор

Not mean to be offensive but too difficult to understand with the accent

chenyangwang
visit shbcf.ru