| 程序包 | 说明 |
|---|---|
| com.ms.tools.network.ip | |
| com.ms.tools.network.ip.core |
| 限定符和类型 | 方法和说明 |
|---|---|
static IPLocation |
IpUtils.getIPLocation(String ip,
String dataPath)
获取IP地址信息
数据来源
纯真数据库
|
| 限定符和类型 | 方法和说明 |
|---|---|
IPLocation |
IPLocation.getCopy() |
IPLocation |
IPAddressFactory.getIPLocation(String ip)
查询IP地址位置 - synchronized的作用是避免多线程时获取区域信息为空
|
Copyright © 2024. All rights reserved.