java url 本地文件是否存在,使用URL检查远程服务器上是否存在文件
How can I check in Java if a file exists on a remote server (served by HTTP), having its URL? I don't want to download the file, just check its existence.解决方案import java.net.*;import java.io.*;public ...