Spring总结

  1. IOC
    IOC,控制反转,即由spring控制对象的生命周期和对象之间的关系;
  2. AOP使用场景
    Authentication 权限
    Caching 缓存
    Context passing 内容传递
    Error handling 错误处理
    Lazy loading 懒加载
    Debugging  调试
    logging, tracing, profiling and monitoring 记录跟踪 优化 校准
    Performance optimization 性能优化
    Persistence  持久化
    Resource pooling 资源池
    Synchronization 同步
    Transactions 事务
  3. AOP实现
    aop:aspectj-autoproxy或者apo:config
    http://www.cnblogs.com/oumyye/p/4467276.html
    http://www.cnblogs.com/flowwind/p/4782606.html
    http://blog.csdn.net/moreevan/article/details/11977115/
    http://www.cnblogs.com/hongwz/p/5764917.html
  4. @Autowire和@Resource的区别
    http://blog.csdn.net/xiaoyiyz/article/details/51201937

  5. Spring Bean的生命周期
    i、Bean的建立;
    ii、配置Bean的属性;
    iii、BeanNameWare配置;
    iv、BeanFactoryAware配置;
    v、BeanPostProcesser前置处理,@PostConstruct;
    vi、InitializingBean的afterPropertiesSet();
    vii、Bean的xml配置中的init-method;
    viii、BeanPostProcessor后置处理;
    viiii、DisposableBean的destroy();
    x、Bean的xml配置中的destroy-method;
    http://developer.51cto.com/art/201104/255961.htm

  6. Servlet的生命周期
    加载->实例化init()->提供服务service()->销毁destroy();

  7. Spring Bean循环依赖解决
    http://jinnianshilongnian.iteye.com/blog/1415278
    http://www.cnblogs.com/bhlsheji/p/5208076.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值