|
@@ -6,6 +6,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import cn.com.qmth.examcloud.commons.logging.ExamCloudLog;
|
|
|
import cn.com.qmth.examcloud.commons.logging.ExamCloudLogFactory;
|
|
|
+import cn.com.qmth.examcloud.commons.util.PropertiesUtil;
|
|
|
|
|
|
/**
|
|
|
* 云配置
|
|
@@ -20,6 +21,16 @@ public class PropertyHolder {
|
|
|
|
|
|
private static final Properties PROPS = new Properties();
|
|
|
|
|
|
+ /**
|
|
|
+ * 从资源文件加载配置
|
|
|
+ *
|
|
|
+ * @author WANGWEI
|
|
|
+ * @param resourceName
|
|
|
+ */
|
|
|
+ public void loadFromResource(String resourceName) {
|
|
|
+ PropertiesUtil.loadFromResource(resourceName, PROPS);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 设置属性
|
|
|
*
|