All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.z.ip2region.autoconfigure.Ip2RegionProperties Maven / Gradle / Ivy

package cn.z.ip2region.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 

IP地址转区域配置属性

* *

* createDate 2021/09/22 15:43:41 *

* * @author ALI[[email protected]] * @since 1.0.0 */ @ConfigurationProperties(prefix = "ip2region") public class Ip2RegionProperties { /** * 资源路径(优先级0)
* 读取项目文件夹resources下的路径 */ private String resourcePath; /** * 本地路径(优先级1)
* 读取本地物理路径 */ private String localPath; /** * URL路径(优先级2)
* 读取URL路径
* 例如:https://www.404z.cn/files/ip2region/v3.0.0/data/ip2region.zdb */ private String urlPath; public String getResourcePath() { return resourcePath; } public void setResourcePath(String resourcePath) { this.resourcePath = resourcePath; } public String getLocalPath() { return localPath; } public void setLocalPath(String localPath) { this.localPath = localPath; } public String getUrlPath() { return urlPath; } public void setUrlPath(String urlPath) { this.urlPath = urlPath; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy