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 HttpURLConnection
例如,如果我想从我连接的服务器读取对 POST 方法调用的响应,是否会使用此方法?
我从未遇到过将其设置为假的情况。你总是想读一些东西,至少是响应代码。