The most simple distributed demo

Use springcloud

Two ports are provided

 

 

http://localhost:8091/user/1

Get the data

code show as below:

 

http://localhost/consumer/user?id=1

 

code show as below:

 

There is no better course, that issue will meet ~~~~~~~ card for a long time.

Noteworthy:

pojo data types are consistent with the virtual machine type.

Do not forget to comment.

Do not enter the wrong URL.

MySQL5.6 and 5.7 are not compatible

 

 

Guess you like

Origin www.cnblogs.com/ooo888ooo/p/12549655.html