cn.minsin.core.rule.AbstractModelRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mutils-core Show documentation
Show all versions of mutils-core Show documentation
mutils-core 作为mutils组件中的核心模块。 可以被maven项目单独引用,引入后可提供多种帮助类,如StringUtil、NumberUtil、DateUtil等等
maven仓库:https://mvnrepository.com/artifact/cn.minsin/mutils-core
package cn.minsin.core.rule;
import java.io.Serializable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.alibaba.fastjson.JSON;
/**
* 第三方接口所需要继承的父类 这个抽象内不能定义字段
*
* @author minsin
*
*/
public abstract class AbstractModelRule implements Serializable {
/**
*
*/
private static final long serialVersionUID = 57625408003186203L;
protected final Logger log = LoggerFactory.getLogger(this.getClass());
@Override
public String toString() {
//移除校验 since 0.2.7
return JSON.toJSONString(this);
}
}