This commit is contained in:
tanghc
2019-07-25 20:34:29 +08:00
parent bf49c68286
commit 9f78eceded
26 changed files with 449 additions and 58 deletions

View File

@@ -1,5 +1,12 @@
# 常见问题
## 微服务端如何获取appId等参数
```java
OpenContext openContext = ServiceContext.getCurrentContext().getOpenContext();
String appId = openContext.getAppId();
```
## Socket error occurred: `localhost/0:0:0:0:0:0:0:1:2181`: Connection refused
检查本地zookeeper有没启动如果zookeeper在其他机器上修改application-dev.yml