Spring注入

private static ApplicationContext context = new ClassPathXmlApplicationContext("classpath*:config/spring/appcontext-*.xml");
private static SDKRegisterService sdkRegisterService = (SDKRegisterService)context.getBean("sdkRegisterService");
posted @ 2017-03-07 16:38  励志SQA女  阅读(133)  评论(0编辑  收藏  举报