yin.kh

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年5月16日

摘要: 不通过注解或者是配置文件怎么获取spring中定义的bean呢?有几个方法: 1、实现ApplicationContextAware <bean class="com.xxx.SpringUtil"/> SpringUtil内容如下: public class SpringUtil implemen 阅读全文
posted @ 2016-05-16 21:34 yin.kh 阅读(188) 评论(0) 推荐(0)