Java 无法使用appengine-web.xml部署多个服务
我希望将相同的代码部署到两个不同的服务(Java 无法使用appengine-web.xml部署多个服务,java,google-app-engine,Java,Google App Engine,我希望将相同的代码部署到两个不同的服务(default和service) 我的appengine-web.xml如下 <?xml version="1.0" encoding="utf-8"?> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> <service>serving</service>
default
和service
)
我的appengine-web.xml如下
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<service>serving</service>
<runtime>java8</runtime>
<threadsafe>true</threadsafe>
<instance-class>F4</instance-class>
<automatic-scaling>
<min-pending-latency>3s</min-pending-latency>
<max-concurrent-requests>15</max-concurrent-requests>
</automatic-scaling>
<env-variables>
<env-var name="GAE_MEMORY_MB" value="2048M"/>
<env-var name="HEAP_SIZE_RATIO" value="90"/>
</env-variables>
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties" />
</system-properties>
<static-files>
<include path="/index.html" />
</static-files>
</appengine-web-app>
服务
爪哇8
真的
F4
3秒
15
你知道我如何使用appengine-web.xml让它部署所有服务吗?要实现多个服务的部署,我相信你实际上需要将服务设置在
app.yaml
上。请你看看这个箱子,看看是否对你有帮助?