How does SpringBoot start multiple times in IDEA (load balancing)

During the development process, we will encounter the need to use Ribbon load balancing. We need to use a project to start multiple times to simulate the load balancing environment. In IDEA, I can right-click to copy the required project to set the name of the copied project, and remove the
insert image description here
tick Check the box and click ok
insert image description here
. The last step is to find the copied original project and change the port number to another port number (for example: 8089). Anyway, there cannot be any port numbers that are already in use. When running the copied project, you can find that the
insert image description here
port number has changed
insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/qq_45502336/article/details/109462831