IDEA SpringBoot starts multiple services (instances) in the same module

  1. Copy configuration

insert image description here

insert image description here

  1. Modify configuration parameters, such as ports
--server.port=10001

insert image description here
3. In this way, four services with the same service are started, and then you can use Gatewayfor load balancing tests:
insert image description here

Guess you like

Origin blog.csdn.net/zyx1260168395/article/details/117851239