WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();
ApkhashService apkhashService = (ApkhashService) wac.getBean("apkhashServiceImpl");
SpringBoot中获取Bean
最新推荐文章于 2024-08-07 18:08:32 发布
WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();
ApkhashService apkhashService = (ApkhashService) wac.getBean("apkhashServiceImpl");