Spring 测试

 

 

   ApplicationContext context = new ClassPathXmlApplicationContext(  
        "/WEB-INF/applicationContext.xml");  
        Sender sf = (Sender) context.getBean("sender"); sender为bin的ID
       sf.send();

 

你可能感兴趣的:(spring)