关于spring 的一些常见中手动获取bean 的 操作

来源:互联网 发布:js判断滚动条是否滚动 编辑:程序博客网 时间:2024/05/16 19:01

第一种是   SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);

第二种是   WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());

(IGatewayService) wac.getBean("gatewayServiceImpl");

0 0
原创粉丝点击