ServletContext servletContext = this.getServletContext();
WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(servletContext);
逻辑接口 名称= (逻辑接口)ctx.getBean("逻辑接口名");
ServletContext servletContext = this.getServletContext();
WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(servletContext);
逻辑接口 名称= (逻辑接口)ctx.getBean("逻辑接口名");