gpt4 book ai didi

java - 使用多模块 Maven 应用程序的 Google App Engine 端点

转载 作者:行者123 更新时间:2023-11-30 02:47:57 33 4
gpt4 key购买 nike

您好,我使用 Maven 多模块项目和 google 云端点作为 api 管理,我能够使用 appengine devserver 成功运行该应用程序,但是当我将其部署到 appengine 时,它​​会显示如下错误。

java.lang.IllegalArgumentException: Environment variable 'ENDPOINTS_SERVICE_NAME' is not set    at com.google.api.config.ServiceConfigSupplier.get(ServiceConfigSupplier.java:99)    at com.google.api.config.ServiceConfigSupplier.get(ServiceConfigSupplier.java:47)    at com.google.common.base.Suppliers$ExpiringMemoizingSupplier.get(Suppliers.java:199)    at com.google.api.config.ServiceConfigFetcher.fetch(ServiceConfigFetcher.java:40)    at com.google.api.control.ServiceManagementConfigFilter$1.load(ServiceManagementConfigFilter.java:33)    at com.google.api.control.ConfigFilter.init(ConfigFilter.java:87)    at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)    at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)    at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)    at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)    at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)    at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)    at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:206)    at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:179)    at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:136)    at com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:504)    at com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:446)    at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:453)    at com.google.tracing.CurrentContext.runInContext(CurrentContext.java:276)    at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:312)    at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:304)    at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:450)    at com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:235)    at java.lang.Thread.run(Thread.java:745)

最佳答案

the documentation 中所述,您需要部署 API 配置并将您的服务名称指定为 environment variable .

关于java - 使用多模块 Maven 应用程序的 Google App Engine 端点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39585883/

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