-
[SpringBoot] Spring ContainerProgramming/SpringBoot 2023. 12. 2. 16:36728x90
Spring Contiainer에 대해 알아보기 전 서지식이 필요합니다!
아래 포스팅을 참고해주세요.
Spring Boot에서는 Spring Container를 통해 Bean이라는 객체를 관리합니다.
Spring Container란 의존 관계 주입을 사용자가 객체를 생성하는 대신 자체적으로 Bean을 생성하고 관리하면서 의존 관계를 연결해주는 것입니다.
비어 있는 Spring Container가 생성되면 Spring 설정 파일(application,yml 혹은 application.properties )을 기반으로 Spring Container에 Bean이 등록된 후 Bean의 의존 관계를 주입합니다.
@ControllerAdvice
@PathVariable
@RequestBody
@Transactional
@JsonProperty
728x90'Programming > SpringBoot' 카테고리의 다른 글
[SpringBoot] Lombok 롬복 (1) 2023.12.07 [SpringBoot] JPA (0) 2023.12.07 [SpringBoot] MVC패턴 + REST API + JPA 프로젝트 설계 (1) 2023.12.07 [SpringBoot] MVC패턴 (1) 2023.12.02 [SpringBoot] 스프링 vs 스프링부트 (0) 2023.12.02