Pick up property files in the Tomcat according to the environment

1

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?

    
asked by alejogabriel 15.07.2016 в 20:11
source

1 answer

0

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.

    
answered by 15.07.2016 в 20:14