首页  :: 新随笔  :: 管理

2012年6月5日

摘要: Spring管理filter和servlet在使用spring容器的web应用中,业务对象间的依赖关系都可以用context.xml文件来配置,并且由spring容器来负责依赖对象 的创建。如果要在filter或者servlet中使用spring容器管理业务对象,通常需要使用WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext())来获得WebApplicationContext,然后调用WebApplicationContext.getBean("beanName")来获 阅读全文

posted @ 2012-06-05 23:40 季枫 阅读(3421) 评论(0) 推荐(0)

智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |