In a java application, I use the .properties file to access the configuration properties associated with the application.
For example, the
AppConfig.propertiescontents of which we say
settings.user1.name=userone
settings.user2.name=usertwo
settings.user1.password=Passwrd1!
settings.user2.password=Passwrd2!
I use these properties through a java file - AppConfiguration.javalike
private final Properties properties = new Properties();
public AppConfiguration(){
properties.load(Thread.currentThread().getContextClassLoader()
.getResourceAsStream("AppConfig.properties"));
}
Now, instead of saving all the key properties in one file, I would like to split them into several files (AppConfig1.properties, AppConfig2.properties, AppConfig3.properties, etc.). I would like to know if these multiple files can be uploaded at the same time.
My question is not like - Multiple .properties files in a Java project
Thank.
source
share