我正在使用 Eclipse Java EE,当我localhost:8080
在浏览器上编译和运行我的 Google AppEngine 项目时没有给出任何正确的输出,但是当我使用127.0.0.1:8080
我的程序时,我的程序在浏览器上运行得很好。但是,当我将我的应用程序部署到谷歌应用程序点时,localhost:8080
意志会更新并且运行良好(仅适用于我部署到应用程序点的实例)。
为什么localhost:8080
不能正确更新和127.0.0.1:8080
正确更新?
我不能127.0.0.1:8080
总是使用 insted localhost 因为当我尝试获取_ah/api/explorer
then127.0.0.1:8080/_ah/api/explorer
将重定向到 google api 资源管理器(而不是我的 api 资源管理器)。
我应该怎么做才能做到这一点?