cn.minsin.core.init.KuaiDi100Config Maven / Gradle / Ivy
package cn.minsin.core.init;
import cn.minsin.core.exception.MutilsException;
import cn.minsin.core.init.core.AbstractConfig;
import cn.minsin.core.tools.StringUtil;
/**
* 快递100配置文件
* @author mintonzhang
* @date 2019年2月14日
* @since 0.1.0
*/
public class KuaiDi100Config extends AbstractConfig {
private String customer;
private String key;
private String url;
public String getCustomer() {
return customer;
}
public void setCustomer(String customer) {
this.customer = customer;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
@Override
protected void checkConfig() {
slog.info("Required for initialization customer,key,url");
if (StringUtil.isBlank(customer, key, url)) {
throw new MutilsException("快递100 初始化失败,请检查配置文件是否正确.");
}
}
}