We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
服务器禁止直接访问外网, 需要配置代理,未在代码中找到统一设置位置。辛苦作者看下~
The text was updated successfully, but these errors were encountered:
@borball 同样的问题, 项目里需要代理微信接口做自动化测试.
我把 WxClient 与 AccessTokenHolder 创建 HttpCleint 的代码改成这样了:
WxClient
AccessTokenHolder
HttpCleint
httpClient = HttpClients.createDefault(); ===> httpClient = HttpClients.createSystem();
httpClient = HttpClients.createDefault();
httpClient = HttpClients.createSystem();
HttpClients.createSystem() 会读取系统的代理设置, 这样我可以返回 Mock 数据
HttpClients.createSystem()
或者提供一种方式可以指定自己配置的 httpClient
httpClient
Sorry, something went wrong.
No branches or pull requests
服务器禁止直接访问外网, 需要配置代理,未在代码中找到统一设置位置。辛苦作者看下~
The text was updated successfully, but these errors were encountered: