类 NetProxy


  • @Configuration
    @EnableConfigurationProperties(NetProxyProperties.class)
    @ConditionalOnProperty(prefix="yue.net.proxy",
                           name="enabled",
                           havingValue="true")
    public class NetProxy
    extends Object
    网络代理
    从以下版本开始:
    2020年8月26日
    作者:
    ylyue
    • 构造器详细资料

      • NetProxy

        public NetProxy()
    • 方法详细资料

      • useSystemProxies

        public static void useSystemProxies()
        使用系统代理

        在Windows系统、macOS系统和Gnome系统上,可以告诉java.net堆栈,将该属性设置为true,以使用系统代理设置(这两个系统都允许通过它们的用户界面全局设置代理)。注意,此属性只在启动时检查一次。

      • httpServerEnable

        public void httpServerEnable()
      • httpServerClose

        public void httpServerClose()
      • httpsServerEnable

        public void httpsServerEnable()
      • httpsServerClose

        public void httpsServerClose()
      • ftpServerEnable

        public void ftpServerEnable()
      • ftpServerClose

        public void ftpServerClose()
      • socksServerEnable

        public void socksServerEnable()
      • socksServerClose

        public void socksServerClose()