Servlet 获取 Spring 中的对象

来源:互联网 发布:java collection遍历 编辑:程序博客网 时间:2024/05/21 05:39
ServletContext servletContext = this.getServletContext();WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(servletContext);managerServ = (IManager) ctx.getBean("IManager");

0 0
原创粉丝点击