IpToLocationSearcher

class IpToLocationSearcher(ipToLocationProperties: IpToLocationProperties, resourceLoader: ResourceLoader) : InitializingBean, DisposableBean

IP 定位查询器

负责加载 IP2Location 数据库并执行 IP 查询

Author

lishangbu

Since

2025/4/12

Constructors

Link copied to clipboard
constructor(ipToLocationProperties: IpToLocationProperties, resourceLoader: ResourceLoader)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun afterPropertiesSet()

加载 IP 数据库资源

Link copied to clipboard
open override fun destroy()

关闭定位器资源

Link copied to clipboard
fun ipQuery(ipAddress: String): IpResult?

查询 IP 对应的地理位置信息