I've got a spring boot app with source and test hierarchies. In both hierarchies I've got application.yml files with properties.
let's say I've got the following in src application.yml:
settings1:
setting1: value11
settings2
setting1: value12
whereeas in the application.yml in test I've got the following:
settings1:
setting1:testValue11
I want all my tests to know the overridden values from test application.yml and if a value is not present in the test application.yml, the value would be picked up from the src application.yml.
But I want that when my application runs, it knows only the settings from the src application.yml.
How can I solve it? Configuration would be preferable instead of wiring values in the code.