微信后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
534 B

package com.ynxbd.common.config;
import com.ynxbd.common.helper.ProperHelper;
// 外采配置
public class OCHelper {
private OCHelper() {
}
//配置文件读取项
public static final String URL;
public static final Boolean IS_ENABLE;
static {
ProperHelper config = new ProperHelper().read("oc.properties");
IS_ENABLE = config.getBoolean("oc.is_enable", false);
config.setIsEnable(IS_ENABLE); // 设置开关
URL = config.getString("oc.url");
}
}