Skip to content

bug: #2329

Closed
Closed

Description

@anenviousguest

Please read our contributor guide before
creating an issue.

Expected behavior

  • When a Spring Boot application which uses DGS framework specifies some autoconfiguration classes to exclude via spring.autoconfigure.exclude property in a application-<profile>.yaml file using array syntax, then this array gets augmented with:

    • org.springframework.boot.graphql.autoconfigure.observation.GraphQlObservationAutoConfiguration
    • org.springframework.boot.graphql.autoconfigure.security.GraphQlWebMvcSecurityAutoConfiguration

    For example, the application-<profile>.yaml could be:

    spring.autoconfigure.exclude:
      - com.example.AutoconfigA
      - com.example.AutoconfigB
  • Alternatively, when index-based syntax is used for a said property, the expectation is the same - the two above classes should be added to the array of exclusions, but not replacing it completely.

    spring.autoconfigure.exclude[0]=com.example.AutoconfigA
    spring.autoconfigure.exclude[1]=com.example.AutoconfigB

Actual behavior

The value is not augmented but rather gets overridden with the two graphql configuration classes given above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions