【发布时间】:2016-05-19 13:54:07
【问题描述】:
我试图在非默认模块上运行应用引擎端点,但生成的 JAR 没有指向正确的模块。
我的模块名称是:
<module>business-module</module>
我使用以下方法生成 JAR:
business-module:appengineEndpointsInstallClientLibs
当我打开生成的罐子时,我看到:
public static final String DEFAULT_ROOT_URL = "https://project-id.appspot.com/_ah/api/";
public static final String DEFAULT_SERVICE_PATH = "blahApi/v1/";
public static final String DEFAULT_BASE_URL = "https://project-id.appspot.com/_ah/api/blahApi/v1/";
但从技术上讲,它应该是:
public static final String DEFAULT_ROOT_URL = "https://1-dot-business-module-dot-project-id.appspot.com/_ah/api/";
public static final String DEFAULT_SERVICE_PATH = "blahApi/v1/";
public static final String DEFAULT_BASE_URL = "https://1-dot-business-module-dot-project-id.appspot.com/_ah/api/blahApi/v1/";
我可以通过打开 api explorer 运行 api:
编辑
bug tracker有一个相关问题
【问题讨论】:
标签: java google-app-engine google-cloud-endpoints google-cloud-platform