I have a war that I raise it with tomcat 8, I need to load a file of properties according to the environment in which I am (dev, test or prod) that are in the "conf" folder of the tomcat. What do you recommend me to use?
I have a war that I raise it with tomcat 8, I need to load a file of properties according to the environment in which I am (dev, test or prod) that are in the "conf" folder of the tomcat. What do you recommend me to use?
Depending on the environment, I suppose you have a database for each one. You can make a table of properties that have that information and obtain it through a class that is clearly responsible for that, so, when you change the database, the properties will be according to that bd's environment.