Discuss / Java / 小白的疑惑

小白的疑惑

Topic source

红亭199305

#12 Created at ... [Delete] [Delete and Lock User]

所以我猜测应该是我们访问这个官方网站的时候,老师在后台给我们的浏览器添加了缓存?然后就指向了localhost吧?

红亭199305

#13 Created at ... [Delete] [Delete and Lock User]

不过我ping了一下local.liaoxuefeng.com发现是通的之后,但是无法访问我本地跑的一个项目,就很奇怪,我看请求头的Remote Address的值是127.0.0.1:8292,端口也没错,但是请求404了,

页面显示

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri Apr 09 11:19:07 CST 2021

There was an unexpected error (type=Not Found, status=404).

No message available

🌙

#14 Created at ... [Delete] [Delete and Lock User]

牛逼啊啊~~~~

🌙

#15 Created at ... [Delete] [Delete and Lock User]

DNS指向127.0.0.1,跟你用localhost一个效果

咋还有人不理解...

我的疑问是,每个人都可以在dns上面指向这个ip么?

没玩过...

🌙

#16 Created at ... [Delete] [Delete and Lock User]

哈哈哈...还是,要多学习啊,我这么白的人都看懂了...

猜大部分人肯定跳过前面直接看这一节了

其实很简单吧,你访问 www.baidu.com 你怎么不疑问呢?我也没访问百度的ip啊,怎么就能访问百度的页面呢?

至于404那个大概率路径写错了....


  • 1
  • 2

Reply