I want to read properties
file keys and I found that there is the classpath
attribute to set in the @PropertySource
annotation :
@Configuration
@PropertySources({
@PropertySource("classpath:config.properties"),
@PropertySource("classpath:db.properties")
})
public class AppConfig {
//...
}
Where should the properties file be placed and how to know the classpath in the annotation ?