Issue
i have 2 projects, a db-sdk
project which has all the models and repositories, and the db properties file (application.yml), and is a dependency of the project db-api
.
In db-api
i want to use db-sdk
's properties from it's application.yml
file, but for some reason it works only with .yaml
or .properties
extensions, if i use .yml
, the default properties for the db are used.
Why is it so? isn't yaml and yml the same?
Solution
I'm pretty sure this happens because you can't have 2 application.yml files with the same name, so it ignores the second one. With other extensions it is not considered the same file name so it works.
Answered By - Dimon
Answer Checked By - Cary Denson (JavaFixing Admin)