Springboot linking Environment values from Properties files but not from YAML files
Instead of doing this:
public static final String TEST_HOST = "${test1.host}"
Add the annotation @Value so that you can inject properties from the configuration file like the following snippet:
@Value("${test1.host}")
public String host;
The same thing for the second project.
Do not forget to decorate the class holding the config values with this annotation @Configuration
.