ApplicationContext ac = WebApplicationContextUtils.getRequiredWebApplicationContext(ServletActionContext.getServletContext());
DataSource ds = (DataSource) ac.getBean("dataSource");
struts2 Action得到spirng ApplicationContext
最新推荐文章于 2019-03-09 18:48:52 发布