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

在spring 中取得request对象

2013-03-25 
在spring 中获得request对象获取request对象: 1. 首先配置web.xml文件-- @AutowiredprivateHttpServletRe

在spring 中获得request对象
获取request对象:

1. 首先配置web.xml文件-->

@Autowiredprivate  HttpServletRequest request;


PS:第三种方法我测试后,还是获取不到,不知道是不是程序有问题。。

热点排行