在Servlet中获取spring管理的bean

在Servlet中获取spring管理的bean须要导入spring的web相关的jar包。spring-web-3.2.0.RELEASE.jarjava 在web.xml文件添加ContextLoaderListener 在Servlet中调用如下代码,获取ApplicationContext对象进而获取spring管理的bean。web ApplicationContext applicat
相关文章
相关标签/搜索