WebApplicationContext wac = (WebApplicationContext)config.getServletContext().getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
dealerArticleService = (DealerArticleService) wac.getBean("dealerArticleService");
2022-12-28 13:49:30
WebApplicationContext wac = (WebApplicationContext)config.getServletContext().getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
dealerArticleService = (DealerArticleService) wac.getBean("dealerArticleService");