com.codingapi.springboot.framework.serializable.MapSerializable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springboot-starter Show documentation
Show all versions of springboot-starter Show documentation
springboot-starter project for Spring Boot
The newest version!
package com.codingapi.springboot.framework.serializable;
import com.alibaba.fastjson.JSON;
import java.util.Map;
/**
* @author lorne
* @since 1.0.0
*/
public interface MapSerializable {
default Map toMap() {
return JSON.parseObject(JSON.toJSONString(this));
}
}