Proxy connection in Jetty with Maven
I am writing a web application with Jetty with Maven. I have a API which tries to connect to web and gets data. I am inside proxy.
I am unable to connect to Net. can开发者_如何学Python i provide somewhere in Maven or Jetty/Maven settings so my web application can get the internet access through proxy ?
each time i am getting Connection timeout.
This technote illustrates the different ways you can access the internet through proxy from your java code. It could be as simple as setting the following system properties before running maven
- http.proxyHost: the host name of the proxy server
- http.proxyPort: the port number, the default value being 80.
精彩评论