Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为 Java 使用 Eclipse。尝试连接到 HTTP 代理时,我收到此代码的以下错误:
Proxy httpProxy = new Proxy(Proxy.Type.HTTP, addr);
Type cannot be resolved or is not a field
有任何想法吗?谢谢。
您导入的代理类可能不是“java.net.Proxy”,请检查您的包声明。