码迷,mamicode.com
首页 > 编程语言 > 详细

JSP 获取Spring注入的对象

时间:2015-03-10 12:14:45      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:ssh

ServletContext sc = this.getServletConfig().getServletContext();
ApplicationContext ac2 = WebApplicationContextUtils.getWebApplicationContext(sc);
ImpDiscountInfoServ serv = (ImpDiscountInfoServ) ac2.getBean("appDiscountInfoServ");

JSP 获取Spring注入的对象

标签:ssh

原文地址:http://blog.csdn.net/daixinmei/article/details/44172227

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