Dubbo simple source code

1. Project directory structure
Dubbo simple source code
where edu_service_user is the provider of the service, and edu-web_boss is the consumer of the service

Two xml core configuration
①, service provider

(Explanation: address is the current ip interface of my machine: the interface that provides services) -------------------------------- -------------------------------------------------- -------------------------------------------------- --------- ②, service consumer This is similar to the configuration of the service provider** 3. Startup effect** ①, first start Zookeeper (I am running on Windows here) Installation process https://www.cnblogs.com/grimm/p/6732867.html ② , install the dubbo console [installation process](https://blog.csdn.net/qingfengilp/article/details/52262890) * (the installation package is at the end of the article) * ③, start Tomcat ④. Register the service ancestor to Zookeeper, the running code is as follows![](http://i2.51cto.com/images/blog/201805/06/e94d6d41c34a37120d9dd4a609d6db5b.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se ,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=) ⑤, run the project, run the console (127.0.0.1:8080/) The renderings are as follows![](http://i2.51cto.com/images/blog/201805/06 /51aee79b5b77391a2b6772308e6de9fa.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=) A simple source code example

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325337443&siteId=291194637