Spring代码实例化参考

 1、、

LogisticsDao logisticsDao=(LogisticsDao)SpringContextHolder.getApplicationContext().getBean("logisticsDao");

 

 

 

 

2、

SysDeptAPI sysDeptApi=(SysDeptAPI)SpringFactory.getBean(SysDeptAPI.class)

posted on 2019-01-21 15:38  减肥少年  阅读(216)  评论(0编辑  收藏  举报