java自动代理配置
我在 jsoup 中编写了一个应用程序,需要通过公司代理进行连接。我尝试在控制面板(XP)的java设置中给出自动代理配置url,但它仍然超时连接。我还需要做什么
I have written an application in jsoup that needs to connect through company proxy. I have tried giving the auto proxy config url in the java settings in control panel(XP) but it still times out the connection. What else do I need to do
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Java 控制面板中的代理设置仅影响 Java Web Start 应用程序和小程序。
对于常规 Java 应用程序,您应该使用以下属性来配置代理:
http.proxyHost
、http.proxyPort
和http.nonProxyHosts
。https.proxyHost
、https.proxyPort
(HTTPS 处理程序使用http.nonProxyHosts
)。ftp.proxyHost
、ftp.proxyPort
和ftp.nonProxyHosts
。请参阅网络属性 有关配置 java.net 包的各个类的行为的更多详细信息。
没有内置方法可以对常规 Java 应用程序使用自动代理配置。请参阅 这个问题了解执行此操作的各种选项。
Proxy settings in Java Control Panel affect only Java Web Start applications and applets.
For regular Java applications, you should use the following properties to configure proxy:
http.proxyHost
,http.proxyPort
, andhttp.nonProxyHosts
.https.proxyHost
,https.proxyPort
(HTTPS handler useshttp.nonProxyHosts
).ftp.proxyHost
,ftp.proxyPort
, andftp.nonProxyHosts
.See Networking Properties for more details on configuring behavior of the various classes of the java.net package.
There's no built-in way to use automatic proxy configuration for regular Java applications. See answers to this question for various options to do it.
您必须设置 java 环境代理设置。
查看 Oracle 指南。
You must set the java environment proxy settings.
Check the Oracle guide.