Idea implements two projects with the same service but different ports at the same time, full diagram

1. Open the service option of idea

Click on the upper left corner - "View -" Tool Window - "Services

insert image description here

2. Configure a springboot project, provided that you have a springboot project

1. Click Service——"Add Service——"Run Configuration Type

insert image description here

2. Select the springboot project

insert image description here

3. In this way, a springboot service is obtained

insert image description here

3. Copy the same project (only change the name and port)

1. Right-click the service and select Copy Configuration

insert image description here

2. Configure the name and port number

insert image description here

3. Got a project with the same service but different ports

insert image description here

4. Appearance after startup

insert image description here

Guess you like

Origin blog.csdn.net/qq_57581439/article/details/130037264