此代码应该返回主机名,但是Capedwarf运行时返回此代码的null:
public String getHostname() {
ApiProxy.Environment proxyEnvironment = ApiProxy.getCurrentEnvironment();
Map<String, Object> attributes = proxyEnvironment.getAttributes();
String hostname = (String) attributes.get(LocalEnvironment.DEFAULT_VERSION_HOSTNAME);
return hostname;
}发布于 2018-04-05 08:18:18
我建议不要在这里发布,而是在CapeDwarf的JIRA或它的GitHub项目上打开一个问题。这样问题就不会消失或被遗忘。更重要的是,尝试解决这些问题,因为它们看起来相当简单。
https://stackoverflow.com/questions/49656278
复制相似问题