摘要:
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)
浙公网安备 33010602011771号