Answer the question
In order to leave comments, you need to log in
What other ways are there to move property data from an application to Tomcat?
I have a property file in my application that stores data in the form of a key value. There is a task of removal of these data in Tomcat. Wandered the Internet, found one working solution:
1. I write my data in the CATALINA_HOME/conf/context.xml file
<Environment name="KEY1" value="VALUE1" type="java.lang.String" />
@Value( "${KEY1}" )
private String userPassword
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question