Step 1 Add dependency to Dubbo

<dependency>
<groupId>com.github.sgroschupf</groupId>
<artifactId>zkclient</artifactId>
<version>0.1</version>
</dependency>
Step 2 Re-run and see success

Step 3 Add some print and run again


When running, this provider will register itself to the ZooKeeper, and then it will be ready to provide its service.
To verify this, we need to prepare a client that will use the service, which will be following.
Step 3 Package the project into runnable JAR
Just refer the instructions from IDEA
网友评论