ApplicationContext context = new ClassPathXmlApplicationContext(
"/WEB-INF/applicationContext.xml");
Sender sf = (Sender) context.getBean("sender"); sender为bin的ID
sf.send();
Spring 测试
阅读 50
2023-10-09
ApplicationContext context = new ClassPathXmlApplicationContext(
"/WEB-INF/applicationContext.xml");
Sender sf = (Sender) context.getBean("sender"); sender为bin的ID
sf.send();
相关推荐
精彩评论(0)