1011121314151617181920
@Test public void test() { ApplicationContext ctx = new ClassPathXmlApplicationContext("spring-*.xml"); ResourcesServiceImpl bean = (ResourcesServiceImpl)ctx.getBean("resourcesService"); bean.findAll(); bean.getById("1"); bean.getUserResources("1"); } }