社区
Eclipse
帖子详情
request方法
bandit001
2006-12-15 01:40:39
String filePath =request.getRealPath("/"); //取当前系统路径
出现的问题:
The method getRealPath(String) from the type ServletRequest is deprecated
...全文
192
5
打赏
收藏
request方法
String filePath =request.getRealPath("/"); //取当前系统路径 出现的问题: The method getRealPath(String) from the type ServletRequest is deprecated
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
yigui2001
2006-12-18
打赏
举报
回复
session.getServletContext().getRealPath("/")
取得你的应用服务器中那个项目的路径!
bandit001
2006-12-18
打赏
举报
回复
是取当前系统路径
有人说可以用getServletContext()方法,我试过,不行,还是有警告!!!
wlp_8228
2006-12-17
打赏
举报
回复
可以用,但可能以后jdk版本中不再有这个方法了
wlp_8228
2006-12-17
打赏
举报
回复
这个方法是不被推荐的了
wanzyqyy
2006-12-17
打赏
举报
回复
這能行嗎?你是不是沒有寫完整路徑啊!~~
Java Web核心技术-
Request
和Response
你能获得: 理解
Request
请求是什么、
Request
相关的常用
方法
、Response常用
方法
。本课程是JavaWeb开发的重要课程,
Request
请求表达了整个Web开发的核心,而Response代表服务响应给前端的数据,对数据的处理,返回格式...
Element中Upload上传组件的http-
request
方法
刚开始接触vue,新框架是vue+Element。其中写到上传组件的时候卡住了。问题详细: Upload上传组件中的action是必选参数,但是调... 在使用http-
request
方法
的时候,调用的事件必须以param为参数,通过param.file取...
axios(2)——axios的
request
方法
,post
方法
axios的
request
方法
axios .
request
({ method: "GET", url: "http://localhost:3000/comments", }) .then((response) => { console.log(response); }); axios的post
方法
axios .post(...
java
request
方法
_
Request
常用
方法
一、HttpServlet
Request
介绍HttpServlet
Request
对象代表客户端的请求,当客户端...二、
Request
常用
方法
2、1、获得客户机信息get
Request
URL
方法
返回客户端发出请求时的完整URL。get
Request
URI
方法
返回请求行中的资源...
wx.
request
方法
返回值调用
wx.
request
方法
返回值怎么调用? onLoad: function (options) { var that = this; wx.
request
({ url: ‘http://127.0.0.1:8080/GetAllFoods’, data: { ‘order’: ‘GetAllFoods’ }, header: { ‘content-type’:...
Eclipse
58,454
社区成员
49,450
社区内容
发帖
与我相关
我的任务
Eclipse
Java Eclipse
复制链接
扫一扫
分享
社区描述
Java Eclipse
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章