Skip to content
Advertisement

Executing multiple java process on same VisualCode workspace

I have three springboot app in a visual Studio code workspace. All three configured to run on unique port.Is it possible to start all three springboot service on the same workspace? Earlier I have seen options where one can select the select the terminals for each process. Anysuggestion would be of great help.

enter image description here

Advertisement

Answer

You can create a launch.json and compound the three projects.

  1. Create a launch.json, which should generate configurations automatically.

  2. Add compound args. Compound configurations list the names of the above three launch configuration.

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

enter image description here

  1. Select compound then debug.

See the effect in my VS Code:enter image description here

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement