代码获取Spring注入的对象
appContext = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);