title: Changing the context path of deployed (Spring Boot) war on a container tomcat server. So it is not demo-0.01-SNAPSHOT
body: <p>I have tried to deploy my site using many configurations to make it change from the war name being deployed. Is there a way to do this easily. The deployment will to a tomcat sitting somewhere else. e.g. bitnami instance</p>
  
  <p>I have tried various combinations of settings in the application.properties but none make any difference:</p>
  
  <pre><code> server.servlet.context-path=/a
      server.servlet.path=/b
      spring.webservices.path=/c
      server.contextPath=/m
  </code></pre>
  
  <p>The war is called demo-0.0.01-SNAPSHOT.war and when dropped in the webapps directory it creates the same named directory and the site then has a /demo-0.0.01-SNAPSHOT path. I thought with the days of Spring Boot this would be easy now but a fool like me hasn't worked it out yet. Or do people just deploy embedded versions with tomcats and run them nowadays?</p>
  
  <p>(BTW I have tried the root.xml as well, no luck ... unless i did it wrong on my windows box, testing on my dev box first, linux for deployment)</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks</p>