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

关于struts2 与 Spring 的有关问题

2011-12-24 
关于struts2与Spring 的问题我现在想再struts2 拦截器中怎样获得spring中的bean的实例[解决办法]Applicati

关于struts2 与 Spring 的问题
我现在想再 struts2 拦截器中 怎样获得spring中的bean的 实例

[解决办法]

ApplicationContext ac=WebApplicationContextUtils.getWebApplicationContext(servletContext);
Object bean=ac.getBean(name);

热点排行