WebApplicationContext类的作用
来源:互联网 发布:远程网络教育靠谱吗 编辑:程序博客网 时间:2024/06/07 00:38
WebApplicationContext是实现ApplicationContext接口的子类。是专门为WEB应用准备的。
作用:
1. 它允许从相对于Web根目录的路径中加载配置文件完成初始化工作。从WebApplicationContext中可以获取ServletContext引用,整个Web应用上下文对象将作为属性放置在ServletContext中,以便Web应用环境可以访问Spring上下文。
2.WebApplicationContext还为Bean提供了三个新的作用域,request、session和globalsession。
其中两个参数HttpServletRequest:服务器从客户端拿去数据
HttpServletResponse:服务器向前台传送数据
1 1
- WebApplicationContext类的作用
- WebApplicationContext类的作用
- WebApplicationContext : org.springframework.web.context.ContextLoaderListener的作用
- 启动webApplicationContext的方式
- WebApplicationContext : org.springframework.web.context.ContextLoaderListener作用
- WebApplicationContext : org.springframework.web.context.ContextLoaderListener作用
- WebApplicationContext : org.springframework.web.context.ContextLoaderListener作用
- WebApplicationContext : org.springframework.web.context.ContextLoaderListener作用
- WebApplicationContext : org.springframework.web.context.ContextLoaderListener作用
- WebApplicationContext
- WebApplicationContext
- WebApplicationContext
- Spring MVC模式下,获取WebApplicationContext的工具类 方法
- spring的WebApplicationContext的研究
- Spring中WebApplicationContext的研究
- Spring中WebApplicationContext的研究
- Spring中WebApplicationContext的研究
- Spring中WebApplicationContext的研究
- rsync 的简单使用
- PHP命名空间(Namespace)的使用详解
- 线程与进程的关系
- aapt 快速分析apk工具aapt的使用
- mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
- WebApplicationContext类的作用
- 电气2班徐立立(随机产生100个数并排序)
- Iwfu-仿58同城加载页的自定义加载动画
- android:fillViewport="true"
- 安装tomcat8
- 十个随机数相加(9种方法)
- 登陆 笔记
- 通用的A标签请求替换成ajax请求
- mysql存储时间