How does java know to load the correct property file. We have development, integration and acceptance environments. How does java pick the right property file corresponding to each environment. I will appreciate if someone can explain clearly how java does it. Thank You, Uma
posted 7 years ago
Define an environment variable some value (tier name can be the value) and respective properties file is loaded for that tier. ex :
-DCONFIG_MODE=dev in development and properties file related to dev is loaded.