From 8cb437529dcb91681aeeed59d5045f1a8de30a03 Mon Sep 17 00:00:00 2001 From: 沈斌 <bluelazysb@hotmail.com> Date: Sun, 05 Nov 2017 11:12:59 +0800 Subject: [PATCH] 代码发布 --- src/main/java/com/moral/monitor/util/ResourceUtil.java | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/moral/monitor/util/ResourceUtil.java b/src/main/java/com/moral/monitor/util/ResourceUtil.java index 35a3f47..1c0ae88 100644 --- a/src/main/java/com/moral/monitor/util/ResourceUtil.java +++ b/src/main/java/com/moral/monitor/util/ResourceUtil.java @@ -6,7 +6,7 @@ * Created by a on 2017/7/4. */ public class ResourceUtil { - private static final ResourceBundle bundle = java.util.ResourceBundle.getBundle("sysConfig"); + private static final ResourceBundle bundle = java.util.ResourceBundle.getBundle("system/sysConfig"); /** * ������������������������ * @@ -24,4 +24,15 @@ public static String getRandCodeType() { return bundle.getString("randCodeType"); } + + + public static String getValue(String key){ + return bundle.getString(key); + } + + public static String[] getArrValue(String key){ + String string = bundle.getString(key); + return string.split(","); + } + } -- Gitblit v1.8.0