# icp-cloud **Repository Path**: Jakewabc/icp-cloud ## Basic Information - **Project Name**: icp-cloud - **Description**: 提供域名备案查询,`whois`查询. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-08 - **Last Updated**: 2024-12-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 域名备案查询`whois`查询 > 提供域名备案查询,`whois`查询. > > 当前项目并没有上传到`maven`公共仓库中,所以开发者需要打包安装到`maven`本地仓库才可以使用,下面有详细教程. [项目地址gitee](https://gitee.com/Jakewabc/icp-cloud.git) # 一、使用教程 - 将项目安装到本地仓库 ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/cd2ad7ab7e5c451a9def74f6a43d8aad.png) - 在`pom.xml`中引入 ```xml io.github.gl-stars icp-cloud 1.0.0 ``` - 使用 继承 `IcpService`类,调用该类中 `fetchDomain`方法即可. ```java /** * 获取域名备案信息 * @param domainList 需要查询的域名 * @param accessKey ak * @param secretKey sk * @return */ public DomainIopVO fetchDomain(List domainList,String accessKey,String secretKey) throws IOException { 略... } ``` - 范例 ```java public class DomainService extends IcpService { public static void main(String[] args) throws IOException { DomainService domainService = new DomainService(); // 需要查询的域名 List domainList = new ArrayList<>(); domainList.add("www.baidu.com"); domainList.add("jd.com"); domainList.add("www.google.com"); domainList.add("taobao.com"); DomainIopVO domainIopVO = domainService.fetchDomain(domainList,null,null); // 备案的域名 List icpList = domainIopVO.getIcpList(); // 没有备案的域名 List noList = domainIopVO.getNoList(); } } ``` ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/9be36a412b1041379b8b4daa3f3c4059.png) ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/5c9e75d666df47cbb7ff8ad3a394dfb8.png) ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/e78c6724a0e34165bab8f27473e5ec06.png)