dongyounn / tech_box

궁금한거 생각나는거 정리하는 서랍장
0 stars 0 forks source link

Application Context VS BeanFactory #2

Open dongyounn opened 3 years ago

dongyounn commented 3 years ago

applicationContext란? beanFactory란?

dongyounn commented 3 years ago

BeanFactory :

  1. Bean을 등록, 생성, 조회, 반환에 대한 관리
  2. getBean() 메서드가 정의되어 있지 않음
  3. 보통은 ApplicationContext 사용

ApplicationContext :

  1. Bean을 등록, 생성, 조회, 반환에 대한 관리
  2. Spring의 각종 부가 서비스를 추가로 제공 (트랜젝션, AOP ..)
  3. Bean을 미리 생성 후 즉시 제공 (Singleton 에만 해당)