Skip to content

Document the need for configuration files to have a file extension #22278

@prabdeb

Description

@prabdeb

Not reading properties for property file passed by -Dspring.config.location=<property file>, where <property file> does not have any extension.

Reproduce: Execute the the following example command -

java -Dspring.config.location=/mount/application-secret-property -jar /home/user/application.war

Where /mount/application-secret-property does not have any extension

Related discussions:

  1. stackoverflow - spring-config-location-is-ignored
  2. Related code in spring boot
  3. Some more discussion on use case

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions