我正在尝试将java web.xml转换为app.yaml for google endpoints,这样我就可以使用git来代替maven。
<servlet>
<servlet-name>SystemServiceServlet</servlet-name>
<servlet-class>com.google.api.server.spi.SystemServiceServlet</servlet-class>
<init-param>
<param-name>services</param-name>
<param-value>rest1.Greetings</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>SystemServiceServlet</servlet-name>
<url-pattern>/_ah/spi/*</url-pattern>
</servlet-mapping>
尝试
application: test
version: 0
runtime: java
api_version: 1
threadsafe: true
handlers:
- url: /_ah/spi/.*
name: SystemServiceServlet
servlet: com.google.api.server.spi.SystemServiceServlet
init_params:
services: rest1.Greetings
load-on-startup: 1
static_files:
- include: /*
secure: always
login: admin
# http_headers:
# Access-Control-Allow-Origin: http://
welcome_files:
- index.html
inbound_services:
- warmup
但是当我使用git上传它时,它无法部署我的端点。 https://github.com/gertcuykens/gcl-11/tree/master/appengine/rs是使用maven appengine update工作的当前工作树。
PS我认为https://developers.google.com/appengine/docs/java/configyaml/appconfig_yaml尚未更新?和api_version:1给我一个错误的api版本?