request.getRequestURL():http://localhost:8080/LoginApi/v1/login
request.getRequestURI():/LoginApi/v1/login
request.getContextPath():
request.getServletPath():/LoginApi/v1/login
request中URL路径获取
最新推荐文章于 2023-10-27 22:26:02 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
request.getRequestURL():http://localhost:8080/LoginApi/v1/login
request.getRequestURI():/LoginApi/v1/login
request.getContextPath():
request.getServletPath():/LoginApi/v1/login