面试啦 - 提供专业面试问题及答案、面试技巧、助您成功面试!
您的当前位置:首页 > 面试题库 > IT面试题 > Spring面试题 > 正文

如何加入Spring到web框架中

在web.xml中加入如下同容,在启动web服务器时加载/WEB-INF/applicationContext.xml中的内容。

context

org.springframework.web.context.ContextLoaderServlet

1

通过如下类得到ApplicationContext实例
WebApplicationContextUtils.getWebApplicationContext
词条:spring面试题
上一篇:如何配置spring+struts 下一篇:Struts,Spring,Hibernate面试题总结
与该文相关的文章

温馨提示:如果您对面试网有任何建议,请通过网站联系邮箱向我们反馈,感谢各位的建议与支持!