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

cn.minsin.core.init.KuaiDi100Config Maven / Gradle / Ivy

Go to download

mutils-core 作为mutils组件中的核心模块。 可以被maven项目单独引用,引入后可提供多种帮助类,如StringUtil、NumberUtil、DateUtil等等 maven仓库:https://mvnrepository.com/artifact/cn.minsin/mutils-core

There is a newer version: 0.3.7
Show newest version
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 初始化失败,请检查配置文件是否正确.");
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy