摘要: 当为遗留系统加入spring时,经典问题就是遗留系统需要引用spring管理的bean。幸好spring有机制可以处理这些。建一个类实现ApplicationContextAware接口,有一个引用ApplicationContext的静态成员,然后,遗留系统需要引用spring管理的bean的地方... 阅读全文
posted @ 2014-04-21 01:04 暖暖的拥抱 阅读(7452) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/chjttony/article/details/6286144http://blog.csdn.net/jadyer/article/details/6038604@Repository、 @Service、 @Controller @Component@... 阅读全文
posted @ 2014-04-21 01:00 暖暖的拥抱 阅读(228) 评论(0) 推荐(0) 编辑