Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/394.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google应用程序引擎上的聚合-Java服务器_Java_Google App Engine_Polymer - Fatal编程技术网

Google应用程序引擎上的聚合-Java服务器

Google应用程序引擎上的聚合-Java服务器,java,google-app-engine,polymer,Java,Google App Engine,Polymer,我想在Google AppEngine上将Polymer与Java服务器端结合使用,但在Polymer文档中,它说要使用url重定向修改app.yaml文件,如下所示: handlers: - url: /bower_components static_dir: build/bundled/bower_components secure: always - url: /images static_dir: build/bundled/images secure: always

我想在Google AppEngine上将Polymer与Java服务器端结合使用,但在Polymer文档中,它说要使用url重定向修改app.yaml文件,如下所示:

handlers:
- url: /bower_components
  static_dir: build/bundled/bower_components
  secure: always

- url: /images
  static_dir: build/bundled/images
  secure: always

- url: /src
  static_dir: build/bundled/src
  secure: always

- url: /service-worker.js
  static_files: build/bundled/service-worker.js
  upload: build/bundled/service-worker.js
  secure: always

- url: /manifest.json
  static_files: build/bundled/manifest.json
  upload: build/bundled/manifest.json
  secure: always

- url: /.*
  static_files: build/bundled/index.html
  upload: build/bundled/index.html
  secure: always
我的问题是:如果不使用app.yaml,我怎么做

在GAE中,我不能使用app.yaml(在Java7标准环境中)


谢谢你的帮助。

有点晚了,但这可能会对某人有所帮助:
我认为你可以通过使用指令实现同样的目标。您可以像这样映射每个单独的文件夹/文件,而不是在
app.yaml
中进行映射。然后,您只需在
war
文件中正确地包含这些文件

编辑:
随着我对此进行更多的研究,可能更好的方法是使用和文件。你可以在他们使用Go/Polymer的地方寻找灵感,但这是同样的问题。

有点晚了,但这可能会帮助一些人:
我认为你可以通过使用指令实现同样的目标。您可以像这样映射每个单独的文件夹/文件,而不是在
app.yaml
中进行映射。然后,您只需在
war
文件中正确地包含这些文件

编辑: 随着我对此进行更多的研究,可能更好的方法是使用和文件。你可以在他们使用Go/Polymer的地方寻找灵感,但这是同样的问题