Spring在JAVA中获取bean

来源:互联网 发布:地砖铺设设计软件 编辑:程序博客网 时间:2024/06/06 01:55
WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();wac.getBean("beanId");
0 0
原创粉丝点击