简体   繁体   English

在同一个 VisualCode 工作区上执行多个 java 进程

[英]Executing multiple java process on same VisualCode workspace

I have three springboot app in a visual Studio code workspace.我在 Visual Studio 代码工作区中有三个 springboot 应用程序。 All three configured to run on unique port.Is it possible to start all three springboot service on the same workspace?所有三个都配置为在唯一端口上运行。是否可以在同一个工作区上启动所有三个 springboot 服务? Earlier I have seen options where one can select the select the terminals for each process.早些时候,我看到了可以选择 select 和 select 的每个进程的终端。 Anysuggestion would be of great help.任何建议都会有很大帮助。

在此处输入图像描述

You can create a launch.json and compound the three projects.您可以创建一个launch.json复合这三个项目。

  1. Create a launch.json , which should generate configurations automatically.创建一个launch.json ,它应该会自动生成配置。

  2. Add compound args.添加compound参数。 Compound configurations list the names of the above three launch configuration.复合配置列出了上述三个启动配置的名称。

     "compounds": [ { "name": "Compound", "configurations": ["Launch Demo1Application","Launch Demo2Application","Launch DemoApplication"] } ]

在此处输入图像描述

  1. Select compound then debug. Select compound然后调试。

See the effect in my VS Code:在我的 VS Code 中查看效果: 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM