Dubbo's zookeeper registration center warns: multiple different applications have registered the same service, please check whether there is a solution for false exposure

           Not much foreword, directly on the picture:

 Development background was as follows: Liang Ge IDEA interface

The first one stores the provider and consumer codes: 1. For an e-commerce system, the order service needs to call the user service to obtain all the addresses of a certain user.

The second is the code of the monitoring center (can be downloaded from the Internet): used to start the monitor monitoring center

----------------------------------------------Dividing line-- -------------------------------------------------

Test expected results: The order service web module is on the A server, and the user service module is on the B server. A can remotely call the function of B. Then the first provider is the boot-user-service-provider shown in the figure, and the second provider is the monitoring center Monitor. In the figure below, you can see that the registration port of the monitoring center in the registration center zookeeper is 7070 (that is, the first IDEA above), and the business is 20882 (the second IDEA above)

 

         So how to remove the warning? Solution: Different providers providing the same service should change dubbo.application.name to the same name! ! !

This is the IDEA configuration file of the monitoring center before the change:

 So just change simple-monitor to boot-user-service-provider (namely the first provider name)! ! !

Then run it again, open the zookeeper monitoring center, and find that the warning has disappeared!

It is not easy to create, friends who find this article useful, please like, follow Shuanglian, Crab~. If you have any questions, you can leave a message in the comment area and I will reply in time.

Guess you like

Origin blog.csdn.net/Zhongtongyi/article/details/108241899