【问题标题】:How to diagnose App engine module Routing Requests not working?如何诊断 App 引擎模块路由请求不起作用?
【发布时间】:2013-12-18 14:37:05
【问题描述】:

以下 dispatch.xml 不适用于我们的 appengine 应用 (java):

<?xml version="1.0" encoding="UTF-8"?>
<dispatch-entries>
<dispatch>
    <url>*/favicon.ico</url>
    <module>default</module>
</dispatch>
<dispatch>
    <url>*/*</url>
    <module>x-frontend</module>
</dispatch>
</dispatch-entries>

两个模块都已上传,但 x-frontend 模块没有任何内容。

代码来源于https://github.com/GoogleCloudPlatform/appengine-modules-sample-java

我将 dispatch.xml 放在 appengine-modules-sample-java/root/src/main/webapp/WEB-INF 下。 root 是我添加的默认模块。

【问题讨论】:

    标签: google-app-engine


    【解决方案1】:

    mvn 命令的输出显示:

    Skipping dispatch.xml - consider running "appcfg.sh update_dispatch <war-dir>"
    

    这意味着我们必须手动运行它。 mvn 插件无法完成这项工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-11-23
      • 2014-12-27
      • 1970-01-01
      • 1970-01-01
      • 2018-06-07
      • 2018-01-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多