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