WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();
wac.getBean(beanID);
spring 获取bean 最暴力方式
最新推荐文章于 2024-07-15 22:27:18 发布
WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();
wac.getBean(beanID);