[Java SpringBoot] @Bean 과 @Component 차이2021. 8. 3. 14:07
출처: https://withseungryu.tistory.com/64
[Spring] @Bean 과 @Component 차이
🧐 @Bean 과 @Component 사용하는 이유? IoC Container는 @Configuration, @Bean, @Component, @Repository, @Service, @Controller가 달린 클래스를 감지하며 빈을 가져오기 위해 빈 스캐닝을 합니다. 대표적으..
withseungryu.tistory.com
참고문헌:
스프링5 레시피 (마틴 데이넘, 다니엘 루비오, 조시 롱 저/이일웅 역)
'Development > Java SpringBoot' 카테고리의 다른 글
| [Java SpringBoot] Spring Boot DB 오류해결, DB 사용 안하고 싶을 때 (0) | 2021.08.05 |
|---|---|
| [Java SpringBoot] FetchType.Lazy로 인한 JSON 오류 (0) | 2021.08.03 |
| [Java SpringBoot] Srping Security 권한 직접 체크하기(시큐리티 태그와 인증 클래스) (0) | 2021.08.02 |
| [Java SpringBoot] spring security 파헤치기 (0) | 2021.08.02 |
| [Java SpringBoot] @MappedSuperclass 사용하기 (0) | 2021.08.02 |