gpt4 book ai didi

java - 如何为 JavaFX WebView URL 设置代理?

转载 作者:搜寻专家 更新时间:2023-11-01 03:38:38 25 4
gpt4 key购买 nike

我的电脑在代理服务器后面运行。我想从 JavaFX WebView 访问 url。我使用 System.setProperty() 之类的方法为 javafx 设置代理。但它没有用。请帮忙。

最佳答案

根据JavaFX deployment documentation .

3.2.3 Built-In Proxy Support

Properly packaged JavaFX application have proxy settings initialized according to Java Runtime configuration settings. By default, this means proxy settings will be taken from the current browser if the application is embedded into a web page, or system proxy settings will be used. Proxy settings are initialized by default in all execution modes.

关于如何“正确打包 JavaFX 应用程序”的信息在之前引用的部署文档中。

关于java - 如何为 JavaFX WebView URL 设置代理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21274465/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com