<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-112  評論-73  文章-0  trackbacks-0

    http://omencathay.itpub.net/post/30163/443031

    /**第一種 */
    ApplicationContext ac = new FileSystemXmlApplicationContext("serviceContext.xml");
    JurisdictionImp jurisdictionImp = (JurisdictionImp)ac.getBean("jurisdictionImp");
    /**第二種*/
    FileSystemXmlApplicationContext ctx =new FileSystemXmlApplicationContext(CONTEXT_FILE);
    JurisdictionImp jurisdictionImp = (JurisdictionImp) ctx.getBean("jurisdictionImp");
    /**第三種*/
    Resource resource = new ClassPathResource(CONTEXT_FILE);
    XmlBeanFactory beanFactory = new XmlBeanFactory( resource);
    JurisdictionImp jurisdictionImp=(JurisdictionImp) beanFactory.getBean("jurisdictionImp");
    /**第四種*/
    ServletContext context=request.getSession().getServletContext();
    ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(context);
    JurisdictionImp jurisdictionImp=(JurisdictionImp) ctx.getBean("jurisdictionImp");
    /**第五種*/
    /**
    * 獲得其它業務類對象
    * */
    public Object getBean(String name)
    {
    WebApplicationContext ctx
    if (ctx == null)
    {
    ctx = WebApplicationContextUtils
    .getRequiredWebApplicationContext(servlet.getServletContext());
    }
    return ctx.getBean(name);
    }

    posted on 2008-07-09 11:13 Libo 閱讀(867) 評論(0)  編輯  收藏 所屬分類: Spring
    主站蜘蛛池模板: 在线免费观看中文字幕| 久久免费观看国产精品| 成人一a毛片免费视频| 亚洲综合免费视频| 最近中文字幕电影大全免费版 | 卡一卡二卡三在线入口免费| xxx毛茸茸的亚洲| 青青草a免费线观a| 最新国产精品亚洲| 免费无码又爽又刺激高潮 | 亚洲系列国产精品制服丝袜第| 国产婷婷成人久久Av免费高清| 亚洲精品无码av人在线观看| a级毛片黄免费a级毛片| 亚洲AV无码久久精品蜜桃| 免费国产黄网站在线观看可以下载| 亚洲丝袜美腿视频| 曰批全过程免费视频在线观看| 亚洲中文字幕在线无码一区二区| 成年在线观看网站免费| 亚洲Aⅴ在线无码播放毛片一线天| 国产在线19禁免费观看国产| 一个人看的免费视频www在线高清动漫| 国产亚洲精品高清在线| 蜜桃视频在线观看免费视频网站WWW| 亚洲av鲁丝一区二区三区| 18国产精品白浆在线观看免费 | 日韩精品无码一区二区三区免费| 亚洲综合在线成人一区| 成人一a毛片免费视频| 一边摸一边爽一边叫床免费视频| 亚洲成亚洲乱码一二三四区软件| 亚洲一区二区三区免费在线观看 | 亚洲精品国产专区91在线| 四虎免费大片aⅴ入口| 中文字幕免费在线播放| 亚洲中文字幕久在线| 免费**毛片在线播放直播 | 免费无码又爽又刺激高潮软件| 亚洲精品国产第1页| 国产又粗又猛又爽又黄的免费视频 |