com.yuyenews.core.util.ConfigUtil Maven / Gradle / Ivy
package com.yuyenews.core.util;
import com.alibaba.fastjson.JSONObject;
import com.yuyenews.easy.server.constant.EasySpace;
/**
* 配置文件工具类
* @author yuye
*
*/
public class ConfigUtil {
/**
* 获取配置信息
* @param constants
* @return
*/
public static JSONObject getConfig(EasySpace constants) {
Object obj = constants.getAttr("config");
if(obj != null) {
JSONObject jsonObject = (JSONObject)obj;
return jsonObject;
}
return null;
}
}