一.Spring提供IOC和AOP降低应用组件的依赖性.
1.Spring IOC
1.1 依赖注入有三种方式:设值方法(setter-based),基于构建器(constuctor-base),和基于接口 (Interface- base).Spring IOC目前支持前两种.
1.2 访问Spring IOC通过两个接口实现
1.2.1 BeanFactory位于org.springframework.beans.factory
1.2.2AppplicationContext位于org.springframework.context
1.3 IOC其他方面,自定义bean属性和监听事件
2.Spring AOP
通常有5个装备
before ,throws,after,around ,introduction
org.springframerwork.aop.MethodBeforeAdvice
org.springframerwork.aop.MethodAfterReturnAdvice
org.springframerwork.aop.ThrowsAdvice
org.springframerwork.aop.MethodInterceptor
3 Spring Web
org.springframework.web.bind
org.springframework.web.context
org.springframework.web.context.support
org.springframework.web.filter
org.springframework.web.jsf
org.springframework.web.multipart
org.springframework.web.multipart.common
org.springframework.web.multipart.cos
org.springframework.web.multipart.support
4 Spring DAO
posted on 2006-04-01 12:11
java实战开发 阅读(470)
评论(0) 编辑 收藏 所属分类:
spring