如何在IDEA启动多个Spring Boot工程实例

488 阅读1分钟

step 1

在IDEA上点击Application右边的下三角 
,弹出选项后,点击Edit Configuration

image.png

step 2

打开配置后,将默认的Single instance only(单实例)的钩去掉。 
1

step 3

通过修改application文件的server.port的端口,启动。多个实例,需要多个端口,分别启动。