码迷,mamicode.com
首页 > 其他好文 > 详细

BBOSS框架,获得service方法,和Dao方法对象的方式。

时间:2015-03-16 11:04:47      阅读:94      评论:0      收藏:0      [点我收藏+]

标签:

在BBOSS里面,使用直接的new方式,获得Service方法和Dao方法,那么如何获得这些方法呢,可以通过以下的方式:

获得service方法:

CustomerService customerSvr = (CustomerService) WebApplicationContextUtils.getWebApplicationContext().getBeanObject("customer.customerSvr");

获得Dao方法:
BankingInsuranceDao advertiseDao1 = (BankingInsuranceDao) WebApplicationContextUtils.getWebApplicationContext().getBeanObject("insurance.insuranceDao");

BBOSS框架,获得service方法,和Dao方法对象的方式。

标签:

原文地址:http://blog.csdn.net/mll999888/article/details/44302067

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!