用Java判断一个URL是否有效的两种方法

2025-02-03 03:06:19
推荐回答(2个)
回答1:

用java的runtime ping一下
用httpClient 访问一下

回答2:

1 写一个ping
2 写个http客户端