代码获取Spring流入的对象

代码获取Spring注入的对象appContext WebApplicationContextUtils.getRequiredWebApplicationContext(se

代码获取Spring注入的对象

appContext = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);