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

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

分类:javaee企业开发javaee企业级开发

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

获得service方法:

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

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

上一篇验证码后台调用下一篇昨天登陆页面,,无法进入后台,今天解决了

顶0踩0

属于自己的不要放弃,已经失去的留作回忆。

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

相关文章:

你感兴趣的文章:

标签云: