I wanted to know if there is any way in Spring Boot to read property values from properties file by using Dynamic Keys. I know properties can be put in applic
applic
1- Register a Properties File via Java Annotations.
@Configuration @PropertySource("classpath:test.properties") public class PropertiesJavaConfig { }
2- Dynamically select the right file at runtime.
@PropertySource({ "classpath:persistence-${envTarget:DB}.properties" })