spring boot multiple instances of a program started

0 Introduction

  In development, we often need to launch multiple instances of the same item in a different port, IDEA start multiple instances of very simple

1, method

  1.1, in the project, select Edit configuration, then click to allow parallel operation, as shown below:

 

 

 

  1.2, bring RunDashboard panel to facilitate our view, the method for calling:

 

.Idea find workspace.xml file in the folder of the project,

 

Open, locate RunDashboard node, add the following options, as follows

    <option name="configurationTypes">
      <set>
        <option value="SpringBootApplicationConfigurationType" />
      </set>
    </option>

 

 

 

Then there will help us to see the RunDashboard panel,

 

2, run

  So we have to run multiple instances of the same item in different ports, as shown:

 

Guess you like

Origin www.cnblogs.com/yanghj/p/12004659.html