Skip to content

Binder does not work when referencing kebab-case property by camelCase naming #45877

Closed as not planned
@lorenzbaier

Description

@lorenzbaier

I setup an example config project (https://github.com/lorenzbaier/spring-config-server-client-test/blob/spring-bootrap-binder-case-sensitive/client/src/main/resources/application.yml)

The config looks like the following:

my-config-base:
  passWord: dummy-password-needed
  another-value: dummy-password-needed

another-config:
  value1: ${my-config-base.pass-word}
  value2: ${my-config-base.another-value}
  value3: ${my-config-base.passWord}
  value4: ${my-config-base.anotherValue} # DOES NOT WORK because casing seems to be broken in binder

This will then result in the following:

LOOK HERE AT THIS config: AnotherConfig(value1=dummy-password-needed, value2=dummy-password-needed, value3=dummy-password-needed, value4=${my-config-base.anotherValue})

Notice that value4 could not be bound but all the other combinations work

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions