【发布时间】:2015-02-25 23:31:17
【问题描述】:
我想为我的 GWTP 应用程序的 UI 和后端开发分离包。 目前我的 UI 使用如下配置的 Rest dispatch 访问后端:
bindConstant().annotatedWith(RestApplicationPath.class).to("/MyProject/api");
我想使用 localhost UI 访问远程服务(使用 eclipse 插件运行 GWT 应用程序)。我将上面的行改为:
bindConstant().annotatedWith(RestApplicationPath.class).to("http://my-app.appspot.com/MyProject/api");
使用这个,调用成功到达服务器(我可以在 appengine 日志中看到这个),但 UI 总是返回状态代码 0。
上面的设置有什么问题?我是否必须做其他事情才能使用 GWT ui 访问远程服务?
【问题讨论】:
标签: google-app-engine gwt gwt-platform