Tomcat and proxy settings

前端 未结 6 1412
北海茫月
北海茫月 2021-01-04 10:40

There is a servlet running on tomcat7 and it makes a webservice call to a third party website. The call works fine from the windows machine but when run from tomcat it fails

6条回答
  •  无人及你
    2021-01-04 11:08

    While specifying proxy settings, you have to define the proxy server name like below:

    "-Dhttp.proxyHost=proxy.example.com"
    

提交回复
热议问题