request.getRealPath不推荐使用
生活随笔
收集整理的這篇文章主要介紹了
request.getRealPath不推荐使用
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
?request.getRealPath("") 這個(gè)方法已經(jīng)不推薦使用了,那代替它的是什么方法
Deprecated. As of Version 2.1 of the Java Servlet API, use ServletContext.getRealPath(java.lang.String) instead. request.getSession().getServletContext().getRealPath() 得到站點(diǎn)的絕對(duì)地址轉(zhuǎn)載于:https://blog.51cto.com/wellwy/708942
總結(jié)
以上是生活随笔為你收集整理的request.getRealPath不推荐使用的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: APUE2勘误-11.5节 线程终止(关
- 下一篇: 在云中使用 MapReduce 和负载平