0

I tried to use -Dhttp.proxyHost properties as jvm option to boot spring-boot web application, but it is useless。

here is my code:

java -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8888 -Djava.ext.dirs=d:\test\MyApp\WEB-INF\lib;%JAVA_HOME%\jre\lib\ext MyApplication
deadshot
  • 8,881
  • 4
  • 20
  • 39
boner
  • 11
  • 1
  • Hello, welcome to SO. Can you provide more information about your error ? – William Andrés Bernal Jul 09 '20 at 02:54
  • @bsc2xp this will help [spring-boot-behind-a-network-proxy](https://stackoverflow.com/questions/30168113/spring-boot-behind-a-network-proxy) – deadshot Jul 09 '20 at 02:56
  • this also helps [specifying-an-http-proxy-with-spring-boot](https://stackoverflow.com/questions/33951240/specifying-an-http-proxy-with-spring-boot/46581166) – deadshot Jul 09 '20 at 02:58
  • Try : `java -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8888 -Dhttps.proxyHost=localhost -Dhttps.proxyPort=8888 -jar MyApplication` – Amit kumar Jul 09 '20 at 03:15
  • thanks very much。I made a mistake.https://docs.telerik.com/fiddler/Observe-Traffic/Troubleshooting/NoTrafficToLocalhost – boner Jul 10 '20 at 02:24

0 Answers0