HttpServletRequest req= ((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest();
ServletContext sc = req.getSession().getServletContext();
WebApplicationContext webApplicationContext = WebApplicationContextUtils.getWebApplicationContext(sc);
ICommonDao commonDao= (ICommonDao) webApplicationContext.getBean("commonDao");
jeecg手动注入commdao
最新推荐文章于 2024-07-17 23:48:30 发布