首页 > 代码库 > Spring注入

Spring注入

private static ApplicationContext context = new ClassPathXmlApplicationContext("classpath*:config/spring/appcontext-*.xml");
private static SDKRegisterService sdkRegisterService = (SDKRegisterService)context.getBean("sdkRegisterService");

Spring注入