|
|
@ -7,6 +7,13 @@ OpenContext openContext = ServiceContext.getCurrentContext().getOpenContext(); |
|
|
|
String appId = openContext.getAppId(); |
|
|
|
String appId = openContext.getAppId(); |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 在其它地方获取业务参数 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```java |
|
|
|
|
|
|
|
OpenContext openContext = ServiceContext.getCurrentContext().getOpenContext(); |
|
|
|
|
|
|
|
Object bizObject = openContext.getBizObject(); |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
## Socket error occurred: `localhost/0:0:0:0:0:0:0:1:2181`: Connection refused |
|
|
|
## Socket error occurred: `localhost/0:0:0:0:0:0:0:1:2181`: Connection refused |
|
|
|
|
|
|
|
|
|
|
|
检查本地zookeeper有没启动,如果zookeeper在其他机器上,修改application-dev.yml |
|
|
|
检查本地zookeeper有没启动,如果zookeeper在其他机器上,修改application-dev.yml |
|
|
|