gpt4 book ai didi

google-app-engine - 在本地网络中运行 Google App Engine 应用程序(GWT 开发插件)

转载 作者:太空宇宙 更新时间:2023-11-03 15:37:03 27 4
gpt4 key购买 nike

我正在开发 GoogleAppEngine(GAE) 应用程序,我们中的大多数人都知道将应用程序部署到 GAE 的服务器需要很长时间。

现在,如果我想节省开发时间。我将从本地计算机上的菜单运行。当使用 GWT 开发插件打开 Firefox/Chrome 时,此链接:

http://127.0.0.1:8888/QRCodeProject.html?gwt.codesvr=127.0.0.1:9997当然,如果我的机器在本地网络中有地址:192.168.1.18。我可以从本地机器调用一些电话到这个地址: http://192.168.1.18:8888/qrcodeproject/getUserInfo

如果上面的Servlet没有任何GWT组件也没关系。否则,链接:http://192.168.1.18:8888/QRCodeProject.html?gwt.codesvr=127.0.0.1:9997不可用。我无法执行某些操作,例如调用 RPC。

我确定我需要配置“gwt.codesvr”参数。我不知道这是什么意思,我应该在 gwt.codesvr 参数中放置什么。

任何人都可以告诉我 gwt.codesvr 的含义和 GWT Developement Plugin 的作用

最佳答案

gwt.codesvr 是 GWT 浏览器插件和开发服务器通信的方式。在开发模式下,GWT 代码不会编译为 Javascript,而是直接在服务器上作为 Java 字节码执行。来自docs on Compile & Debug :

When an application is running in development mode, the Java Virtual Machine  
(JVM) is actually executing the application code as compiled Java bytecode,
using GWT plumbing to connect to a browser window.

您还可以在开发服务器上以生产模式运行代码(= 编译为 JS,在浏览器中运行),但您需要 compile it first ,然后在 Url 中不使用 gwt.codesvr 调用它。

关于google-app-engine - 在本地网络中运行 Google App Engine 应用程序(GWT 开发插件),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9661827/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com