0
点赞
收藏
分享

微信扫一扫

Spring 测试


 

 

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

 

举报

相关推荐

0 条评论