SSM中URL与URI的区别

版权声明:如需转载,请写明出处 https://blog.csdn.net/weixin_43113679/article/details/89433538
request.getRequestURL() //http://localhost:8080/SpringStudent/change/forwardControl.action
request.getRequestURI() //change/forwardControl.action

通过这两个例子有个直观的感受吧
URL是全路径,
URI是项目下的路径

猜你喜欢

转载自blog.csdn.net/weixin_43113679/article/details/89433538
今日推荐