Description
The Spring Boot Dashboard ignores the spring.profiles.active configuration set in application.yml and always defaults to the alphabetically first profile (in my case "desa" instead of "test").
Steps to Reproduce
- Create a Spring Boot project with multiple profiles:
application-desa.yml, application-test.yml, application-prod.yml
- Set default profile in
application.yml:
spring:
profiles:
active: test
Configure .vscode/settings.json:
{
"spring-boot.ls.java.vmargs": ["-Dspring.profiles.active=test"],
"java.debug.settings.vmArgs": "-Dspring.profiles.active=test"
}
Start application from Spring Boot Dashboard using "Run" or "Debug"
Expected Behavior
Application should start with profile "test" as configured in application.yml
Actual Behavior
Application always starts with profile "desa" (alphabetically first profile), ignoring all configuration
Workaround
Using "Run with profile" or "Debug with profile" works, but requires manual selection every time. It does not remember last used.
Environment
VSCode Version: 1.109.5
Spring Boot Dashboard Extension Version: 0.14.0
OS: Windows 11
Java Version: 21
Description
The Spring Boot Dashboard ignores the
spring.profiles.activeconfiguration set inapplication.ymland always defaults to the alphabetically first profile (in my case "desa" instead of "test").Steps to Reproduce
application-desa.yml,application-test.yml,application-prod.ymlapplication.yml:Configure .vscode/settings.json:
{
"spring-boot.ls.java.vmargs": ["-Dspring.profiles.active=test"],
"java.debug.settings.vmArgs": "-Dspring.profiles.active=test"
}
Start application from Spring Boot Dashboard using "Run" or "Debug"
Expected Behavior
Application should start with profile "test" as configured in application.yml
Actual Behavior
Application always starts with profile "desa" (alphabetically first profile), ignoring all configuration
Workaround
Using "Run with profile" or "Debug with profile" works, but requires manual selection every time. It does not remember last used.
Environment
VSCode Version: 1.109.5
Spring Boot Dashboard Extension Version: 0.14.0
OS: Windows 11
Java Version: 21