request中各个地址的区别

request.getRequestURI():/appName/products/10001/devices
request.getRequestURL():http://localhost:8080/appName/products/10001/devices
request.getLocalAddr():127.0.0.1
request.getPathInfo():null
request.getPathTranslated():null
request.getRemoteAddr():127.0.0.1
request.getRemoteHost():127.0.0.1
request.getServerName():localhost
request.getServletPath():/products/10001/devices
request.getRequestDispatcher():org.eclipse.jetty.server.Dispatcher@9ddbde

你可能感兴趣的:(request中各个地址的区别)