Answer the question
In order to leave comments, you need to log in
Starting and restarting an application in Tomcat 9 how to do?
Colleagues,
good day.
I want to create a folder mytestapp in Tomcat in the webapps folder.
War with the application that he would take from the myapp_1 folder, which is also in the webapps folder.
And the properties for the application were taken from the myapp_1 folder.
When throwing a new war into the myapp_1 folder - the contents were overwritten - the application was restarted.
<Host name="mytestapp" appBase="webapps" autoDeploy="true">
<Context path="/mytestapp" docBase="c:/Apache-tomcat/webapps/myapp_1/mytestapp.war" debug="0" reloadable="true">
<Environment name="spring.config.location" value="file:c:/Apache-tomcat/webapps/myapp_1/application.properties" type="java.lang.String"/>
</Context>
</Host>
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