How to start simultaneously in different ports in IntelliJ Idea

Configure multi-instance:

  1. Select Edit Configurations Idea top right side of the start button, the dialog box that opens, removing Single Instance Only option, VM Options added -Dserver.port = 8082, Apply application as

 

  2. After the completion of the first, followed by the second one, the upper left corner there is a copy button, click only need to modify a port name and to distinguish shown, in FIG.

 3. Click on the top left of the + sign to add a startup item, select the Compound, a name, and select just two examples, Apply after you can select the startup item in the upper left corner:

 

 

Guess you like

Origin www.cnblogs.com/dalianpai/p/12069455.html