官網(wǎng)說明
原文地址
https://docs.spring.io/spring/docs/5.0.8.RELEASE/spring-framework-reference//core.html#beans
原文內(nèi)容
The
org.springframework.beansandorg.springframework.contextpackages are the basis for Spring Framework’s IoC container. TheBeanFactoryinterface provides an advanced configuration mechanism capable of managing any type of object.ApplicationContextis a sub-interface ofBeanFactory. It adds easier integration with Spring’s AOP features; message resource handling (for use in internationalization), event publication; and application-layer specific contexts such as theWebApplicationContextfor use in web applications.
個人理解
“org.springframework.beans”和“org.springframework.context”是Spring IoC容器的基礎。BeanFactory接口提供了管理對象的能努力,ApplicationContext接口是BeanFactory的子接口,它在BeanFactory的IoC的基礎上提供了AOP特性、消息(國際化)處理、事件發(fā)布和應用層的其他特性,如WebApplicationContext在web應用中的使用。