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:
- stackoverflow - spring-config-location-is-ignored
- Related code in spring boot
- Some more discussion on use case