could anyone tell me how to set http proxy in embedded tomcat?

158 Views Asked by At

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
0

There are 0 best solutions below