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"); } }