title: How do I start and restart an application in Tomcat 9?
body: <p>I want the folder &quot;mytestapp&quot; to be created in the &quot;webapps&quot; folder in Tomcat.</p>
  <p>&quot;mytestapp.war&quot; with the application that he would take from the &quot;myapp_1&quot; folder, which is the same in the &quot;webapps&quot; folder, and placed in the &quot;mytestapp&quot; folder.</p>
  <p>And the &quot;application.properties&quot; for the application were taken from the &quot;myapp_1&quot; folder.</p>
  <p>When adding a new &quot;mytestapp.war&quot; to the folder &quot;myapp_1&quot; - the content was overwritten - the application was restarted.</p>
  <pre><code>&lt;Host name=&quot;mytestapp&quot; appBase=&quot;webapps&quot; autoDeploy=&quot;true&quot;&gt;
      &lt;Context path=&quot;/mytestapp&quot; docBase=&quot;c:/Apache-tomcat/webapps/myapp_1/mytestapp.war&quot; debug=&quot;0&quot; reloadable=&quot;true&quot;&gt;
          &lt;Environment name=&quot;spring.config.location&quot; value=&quot;file:c:/Apache-tomcat/webapps/myapp_1/application.properties&quot; type=&quot;java.lang.String&quot;/&gt;
      &lt;/Context&gt;
  &lt;/Host&gt;
  </code></pre>
  <p>I add the code above to &quot;server.xml&quot;.
  it only fires once - if there is no &quot;mytestapp&quot; folder.
  He does everything as I plan.
  But if he has already done it once, then he does nothing more.</p>