title: Specifying an http proxy with spring-boot
body: <p>How do I specify a http proxy to use when running a spring-boot fat war as a tomcat server?</p>
  
  <p>I have tried the following which is not working.</p>
  
  <pre><code>java -jar my-application.war --http.proxyHost=localhost --http.proxyPort=3128 --https.proxyHost=localhost --https.proxyPort=3128
  </code></pre>
  
  <p>and</p>
  
  <pre><code>java -jar my-application.war -Dhttp.proxyHost=localhost -Dhttp.proxyPort=3128 -Dhttps.proxyHost=localhost -Dhttps.proxyPort=3128
  </code></pre>