摘要:
1、web工程ContextLoaderListener.getCurrentWebApplicationContext().getBean("beanName"); //这个太牛逼了!2、普通JAVA工程/** * */public class ApplicationContextUtil implements ApplicationContextAware{ private static ApplicationContext context;//声明一个静态变量保存 @SuppressWarnings ("static-access") @Overr 阅读全文
posted @ 2013-03-20 19:56
杜兰德
阅读(293)
评论(0)
推荐(0)

浙公网安备 33010602011771号