如果是 IDEA 2018.3 以前请参考: https://blog.csdn.net/forezp/article/details/76408139

如果是 IDEA 2018.3 之后的版本,请使用下方式:

1. 点击 Edit Configurations..

新版 IDEA 设置启动多个Spring Boot工程实例

2. 找到要多次启动的项目,并勾选 Allow parallel run (允许并行运行).

新版 IDEA 设置启动多个Spring Boot工程实例

3. 通过修改 application.yml 文件中的 server.port ,然后启动即可。多个实例需要修改多个端口进行启动。

相关文章:

猜你喜欢
  • 2021-08-11
  • 2021-06-20
  • 2021-08-18
  • 2021-11-23
  • 2021-10-17
相关资源
相似解决方案