gpt4 book ai didi

tomcat - 在哪里写 GWT -noserver 选项以避免码头?

转载 作者:行者123 更新时间:2023-11-28 22:12:28 24 4
gpt4 key购买 nike

出于某种原因,我需要我的 GWT 应用程序通过 tomcat 服务器启动。我做了如下操作:
1) 我为 eclipse 安装了 WTP
2)将tomcat 7配置为启动并运行的服务器
3) 创建动态 web 项目并迁移我的 GWT 应用程序
现在我不知道在哪里写 -noserver 选项,而且我在互联网上找不到清晰的分步说明。
有人可以指导我通过 tomcat 在 Debug模式下运行 GWT 吗?

提前致谢

最佳答案

GWT's FAQ中的说明吗?不够?

  1. Configure your server however you need to; note the URL which contains the host page for your GWT application.
  2. Arrange all your static content files (such as the host HTML page, images, CSS, etc.) on the server however you like.
  3. Edit your development mode execution script (such as your Eclipse run configuration or the ant development build target generated by the GWT webAppCreator) and add or update the following options:
    • Add the -noserver command line argument.
    • Change the URL at the end of the argument list to match the URL you recorded in step #1.
  4. Compile your application once using the ant build target. Ideally, you can use GWT's -war option to generate output files directly into your external server's static content folder. Otherwise, you'll need to copy the GWT output folder from war/ to your external server's static content.

如果您使用的是 Google Plugin for Eclipse ,您要查找的设置位于运行配置的 Server 选项卡中:

Server tab in run configuration

取消选择它,它应该自动添加-noserver参数。

关于tomcat - 在哪里写 GWT -noserver 选项以避免码头?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27678662/

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