Stellar1999 commented on code in PR #1004:
URL: https://github.com/apache/dubbo-samples/pull/1004#discussion_r1360048118
##########
1-basic/dubbo-samples-api/src/main/java/org/apache/dubbo/samples/provider/Application.java:
##########
@@ -28,7 +28,13 @@ public class Application {
private static final String ZOOKEEPER_PORT =
System.getProperty("zookeeper.port", "2181");
private static final String ZOOKEEPER_ADDRESS = "zookeeper://" +
ZOOKEEPER_HOST + ":" + ZOOKEEPER_PORT;
+ private static final String QOS_PORT_PARAM_KEY =
"dubbo.application.qos-port";
+ private static final String QOS_PROVIDER_PORT = "33333";
+
+
public static void main(String[] args) {
+ System.setProperty(QOS_PORT_PARAM_KEY, QOS_PROVIDER_PORT);
Review Comment:
I have modified this code. Is it the correct way to use Dubbo's
ApplicationConfig to accomplish this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]