Skip to content

Dashboard ignores spring.profiles.active configuration and defaults to alphabetically first profile #397

Description

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

  1. Create a Spring Boot project with multiple profiles: application-desa.yml, application-test.yml, application-prod.yml
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions