URI、URL、URN的关系

2020-06-06  本文已影响0人  上杉丶零

关系
request.getRequestURL() = ip:port + (request.getRequestURI() = request.getContextPath() + request.getServletPath())
如:
request.getRequestURI() = /fas/user/registerVue
request.getRequestURL() = http://localhost:8888/fas/user/registerVue
request.getContextPath() = /fas
request.getServletPath() = /user/registerVue

上一篇下一篇

猜你喜欢

热点阅读