Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java网络代理配置功能 #496

Closed
lihongjia-sinosoft opened this issue Apr 29, 2024 · 3 comments
Closed

Java网络代理配置功能 #496

lihongjia-sinosoft opened this issue Apr 29, 2024 · 3 comments

Comments

@lihongjia-sinosoft
Copy link

Feature request

在安全管理相对严格的企业实际生产环境中,可能需要通过代理访问接口,同时在很多情况下,Java项目无法通过启动设置进行网络代理访问。增加网络代理配置功能可以解决这一痛点。

contribution or solutions

lihongjia-sinosoft:Qianfan-with-HTTP-Proxy:java

@Azure99
Copy link
Collaborator

Azure99 commented Apr 29, 2024

Review有一些小问题,可以先重构下,如果着急的话可以先编译您修改后的使用。我们五月内会增加对应能力。

@lihongjia-sinosoft
Copy link
Author

Review有一些小问题,可以先重构下,如果着急的话可以先编译您修改后的使用。我们五月内会增加对应能力。

好的,感谢回复。

@Azure99
Copy link
Collaborator

Azure99 commented May 30, 2024

您好,0.0.6版本已支持网络代理,可以通过代码或环境变量设置https.proxyHost、https.proxyPort实现。

System.setProperty("https.proxyHost", "127.0.0.1");
System.setProperty("https.proxyPort", "7890");

@Azure99 Azure99 closed this as completed May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants