I have two spring boot projects, Project A and Project B, each with its own application.properties
.
When the project is run individually the values from application.properties
are injected properly. But when I am using one of the Project B as a dependency in Project A, the default values defined in application.properties
of B are not being injected and I have to define the same properties again in the .properties
file of A which is kind of redundant.
How do I avoid this? I want the default values in the properties file of B to be injected and I would only want to define the properties for B when I want to override the default values. Sorry for my english