- Spring致力於簡化企業級的Java開發,low coupling,關鍵在於DI及AOP
- Bean
- Spring container負責create對象,wired,configured並管理他們的生命週期(new()~finalize())
- Container是Spring framwork的核心,使用DI管理組件,因此會簡單乾淨,容易理解。更重要的是,容易進行unit test
- Spring container可歸為兩種不同類型:
- bean factory: (org.springframework.beans.factory.BeanFactory interface)提供基本DI support,對大多數應用來說太low-level
- application context: (org.springframework.context.ApplicationContext interface)基於bean factory建置,提供application框架級的服務