【转:在Servlet(或者Filter,或者Listener)中使用spring的IOC容器】 事实上WebApplicationContextUtils.getWebApplicationContext方法就是使用上面的代码实现的,建议使用上面上面的静态方法 coutoperator 2013-12-06 21:02:57