普通类读取spring注入的service接口

ApplicationContext applicationContext = new FileSystemXmlApplicationContext("config/applicationContext.xml");
ResourceService resourceService = (ResourceService) applicationContext.getBean("resourceService");



你可能感兴趣的:(spring,接口,service)