WANG vor 5 Jahren
Ursprung
Commit
48c072e9b1

+ 3 - 6
src/main/java/cn/com/qmth/examcloud/commons/util/PropertiesUtil.java

@@ -33,10 +33,6 @@ public class PropertiesUtil {
 
 	private static final Set<String> PROP_FILES = Sets.newConcurrentHashSet();
 
-	static {
-		init();
-	}
-
 	/**
 	 * 构造函数
 	 *
@@ -48,9 +44,10 @@ public class PropertiesUtil {
 	 * 初始化方法
 	 *
 	 * @author WANGWEI
+	 * @param resourceName
 	 */
-	public static void init() {
-		configure(PathUtil.getResoucePath("resource.properties"));
+	public static void init(String resourceName) {
+		configure(PathUtil.getResoucePath(resourceName));
 	}
 
 	/**