request.getRequestURI()
时间: 2023-10-13 16:05:19 浏览: 91
HttpServletRequest 中 getRequestURL和getRequestURI的区别
The getRequestURI() method is a method of the HttpServletRequest interface in Java Servlet API. It returns the part of the URL that identifies the servlet or JSP being requested.
For example, if the URL of the request is "https://www.example.com/myapp/myservlet", the getRequestURI() method would return "/myapp/myservlet".
This method is used to retrieve the URI of the request so that the servlet or JSP can process the request and generate the appropriate response.
阅读全文