首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

Spring Spring流入Servlet

2013-07-01 
Spring Spring注入Servlet1.private Manager manager@Overridepublic void init() throws ServletExcepti

Spring Spring注入Servlet

1.

private Manager manager;@Override      public void init() throws ServletException {  super.init();ServletContext servletContext=this.getServletContext();ctx = WebApplicationContextUtils.getWebApplicationContext(servletContext);manager = (Manager) ctx.getBean("manager");}

?

热点排行