替换localhost:8080(假域名,本地使用)

1. 更改servers 的端口号为 80 (默认 8080),此时就不用再输入 8080了。

2. 找到 C:WindowsSystem32driversetc 下的 hosts 文件,用记事本打开  

在最后一行添加 :IP地址  你要定义的名字

(不要加 # ,# 号是注释,中间用 tab 键隔开)

原文地址:https://www.cnblogs.com/MarsJiang/p/Eclipse_update_localhost8080.html