Skip to content

itqpleyva/spring-boot-project-multiple-instances-vscode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-project-multiple-instances-vscode

Multiple instances from a spring boot project in VSCODE

To create multiple instances from a SpringBoot project in VSCODE just add e new configuration to the launch.json file in the .vscode folder

      {
          "configurations": [
              {
                  "type": "java",
                  "name": "Spring Boot-DemoApplication<demo> (8002)",// microservice to run in port 8002
                  "request": "launch",
                  "mainClass": "com.example.demo.DemoApplication",
                  "projectName": "demo",
                  "vmArgs": "-Dserver.port=8002"// defining the port
              },
              {
                  "type": "java",
                  "name": "Spring Boot-DemoApplication<demo> (8001)",// microservice to run in port 8001
                  "request": "launch",
                  "mainClass": "com.example.demo.DemoApplication",
                  "projectName": "demo",
                  "vmArgs": "-Dserver.port=8001"//definig the port
              }
          ]
      }

Then go to debug and run the two instances

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages