Spring Framework (2) 썸네일형 리스트형 @Bean과 @Component 사용하는 이유와 사용하는 방법. 차이점. @Bean과 @Component 어노테이션을 사용하는 이유와 사용하는 방법, 그리고 두 어노테이션의 차이점에 대해서 정리해보겠습니다. 혹시 아직 Spring IoC Container, Dependency Injection(의존성 주입)과 Bean의 개념에 대해서 정리가 필요하신 분들은 아래 글을 먼저 읽어보시길 바립니다. https://limminjeong98.tistory.com/459 Spring IoC(Inversion Of Control) Container과 Bean 그리고 Dependency Injection / IoC 컨테이너와 의존성 주입 IoC(Inversion Of Control) Container란? 객체가 생성될 때, 그 객체와 관련 있는 다른 객체들의 의존성 주입을 가능하게 하는 S.. Spring IoC(Inversion Of Control) Container과 Bean 그리고 Dependency Injection / IoC 컨테이너와 의존성 주입 IoC(Inversion Of Control) Container란? 객체가 생성될 때, 그 객체와 관련 있는 다른 객체들의 의존성 주입을 가능하게 하는 Spring Framework에서 AOP(Aspect Oriented Programming)를 구현할 수 있는 ApplicationContext 인터페이스입니다. 스프링 공식 문서에서는 IoC 컨테이너에 대해서 아래와 같이 설명하고 있습니다. It is a process whereby objects define their dependencies (that is, the other objects they work with) only through constructor arguments, arguments to a factory method, or prope.. 이전 1 다음