在实际开发中,往往需要启动多个实例。我们可以按照下面步骤设置:

step 1

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

IDEA多实例启动 Spring Boot工程

step 2

打开配置后,将默认的Single instance only(单实例)的钩去掉。 
IDEA多实例启动 Spring Boot工程

step 3

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

 

参考文章:https://blog.csdn.net/forezp/article/details/76408139

相关文章:

猜你喜欢
  • 2021-08-11
  • 2021-06-20
  • 2021-08-18
  • 2022-01-09
  • 2021-10-31
相关资源
相似解决方案