ApplicationContext springCTX = WebApplicationContextUtils.getWebApplicationContext(ServletActionContext.getServletContext());
CodeTableLoader loader = (CodeTableLoader)springCTX.getBean("codeTableLoader");
java代码中获得spring配置文件中的bean
最新推荐文章于 2019-04-17 18:47:08 发布