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