Skip to content

Instantly share code, notes, and snippets.

@markruler
Created October 29, 2020 00:37
Show Gist options
  • Save markruler/6cb79302a30c88dea4a2c8125a952503 to your computer and use it in GitHub Desktop.
Save markruler/6cb79302a30c88dea4a2c8125a952503 to your computer and use it in GitHub Desktop.
VS Code spring-boot dashboard (microsoft) extenstion
// spring-boot dashboard (microsoft) extenstion
{
"configurations": [
{
"type": "java",
"name": "PetClinicApplication<spring-petclinic>-Spring Boot Dashboard Ext",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopOnEntry": false,
"mainClass": "org.springframework.samples.petclinic.PetClinicApplication",
"projectName": "spring-petclinic",
// 1. Via a commandline argument of the form --spring.profiles.active=profile1,profile2.
// 2. Via a java system property (so a VM argument of the form -Dspring.profiles.active=profile1,profile2.
// 3. Via the application.properties or application.yml file on the project's classpath
// (typically it will be placed in src/main/resources' directory for the typical boot project).
"args": [
"--spring.profiles.active=profile1,profile2",
],
"vmArgs": [
"-Dspring.config.location=file:application.yml",
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment