由request.getRequestURL()引发的一系列路径问题 第二版

request.getScheme() 获取的是http
request.getServerName() 获取的是ip 如果写的是localhost,那么获取到的就是localhost
request.getServerPort() 获取到的是端口号
话不多说,直接上图。

在这里插入图片描述
有兴趣的同学可以参考的我
由request.getRequestURL()引发的一系列路径问题 第一版

今天有点累了, 就到这里了。 谢谢大家。 爱你们!!!

猜你喜欢

转载自blog.csdn.net/taiguolaotu/article/details/106842523