스프링(Spring)
Container
1) BeanFactory : 객체생성~소멸, DI
<bean id=”a” class=”A”>
=> 클래스 객체 요청(DL) : getBean(“a”)
=> 멤버변수나 생성자 매개변수 값주입
<bean>
<property name=”” value=””/>
</bean>
=> setter DI
<bean>
<construct-arg value=””/>
</bean>
=> construct DI
<bean init-method=”” destory-method=”” factory-method=””/>
=> 단점:OOP를 파괴
@Autowired
private BoardDAO da
DI: 클래스와 클래스의 관계 설정
2) ApplicationContext : AOP,국제화
AOP: 중복제거(공통모듈)
공통으로 사용되는 기능 구현
=>언제 사용 ==> pointcut
=>사용되는 위치 ==>joinpoint
Validation
Transaction
Security
3) WebApplicationContext
MVC
=> library
ORM, JDBC, JMS, WebSocket, WebService(Restful)
Spring-Data(MongoDB…)