日期:2014-05-17  浏览次数:21171 次

为什么http://localhost:8080会跳转到百度搜索?
如果输入http://127.0.0.1:8080或者http://localhost:8080/index.html都可以打开页面,但就是http://localhost:8080不行,居然会跳转到百度搜索,这是为什么?应该如何解决?

------解决方案--------------------
hosts文件有问题?


ping一下localhost看指向哪里
------解决方案--------------------
你的没有项目名称吗?直接在weap目录下有JSP文件啊?
------解决方案--------------------
你设置过 默认网址吧