Skip to content

Override of property in external 'application.properties' or 'application.yaml' is ignored #49724

@jeroenagroeneveld

Description

@jeroenagroeneveld

When upgrading from Spring Boot 3.5.5 to 3.5.12 the behaviour of externalized configuration seems to have regressed.
The application uses the property spring.jpa.hibernate.ddl-auto:

  • value in application.properties in the jar: none
  • value in application-local.properties in the jar: create-drop
  • value in external application.properties: none

When running the application with the local profile, this resulted in an effective value of 'none' under 3.5.5, but a value of 'create-drop' under 3.5.12.
When I add an external application-local.properties with the value 'none' running under 3.5.12, the effective value is 'none'.
The behaviour of 3.5.5 is what I expect based on the documentation.

Metadata

Metadata

Labels

type: regressionA regression from a previous release

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions