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

org.lionsoul.ip2region.Ip2RegionProperties Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package org.lionsoul.ip2region;

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

/**
 * @author koma 
 * @date 2019-12-26
 */
@ConfigurationProperties(prefix = Ip2RegionProperties.PREFIX)
public class Ip2RegionProperties {
    public static final String PREFIX = "ip2region";

    /*
     *  是否开启自动配置
     */
    private boolean enabled = false;

    /**
     * db数据文件位置
     */
    private String dbfile;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getDbfile() {
        return dbfile;
    }

    public void setDbfile(String dbfile) {
        this.dbfile = dbfile;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy