Dubbo_Environment Construction_Create Provider Consumer Project

4、dubbo-helloworld

4.1), put forward the demand

For an e-commerce system, the order service needs to call the user service to obtain all the addresses of a certain user;

We now need to create two service modules for testing

Module

Features

Order service web module

Create order, etc.

User service service module

Query user address, etc.

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 call B's functions remotely.

4.2), engineering structure

The call failed because the implementation of userservice is under another project

ser (user service module )

4.3), create a module

1. gmall-interface: public interface layer (model, service, exception...)

2. gmall-user: user module (implementation of user interface)

3. gmall-order-web: order module (call user module)

It is not possible to call this now. Our gmall-order-web introduced gmall-interface, but the implementation of interface is gmall-user, we did not introduce it, and it may actually be in other servers.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

der-web (order web module )

 

Guess you like

Origin blog.csdn.net/ZHOU_VIP/article/details/115260837