于紫祥_1901
2020-11-11 8d3e4f4b795f44e6d59facb11d7fc0918376f4f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.moral.common.util;
 
import java.util.ResourceBundle;
 
/**
 * Created by a on 2017/7/4.
 */
public class ResourceUtil {
    private static final ResourceBundle bundle = ResourceBundle.getBundle("system/sysConfig");
 
    public static String getValue(String key){
        return bundle.getString(key);
    }
 
    public static String[] getArrValue(String key){
        String string = bundle.getString(key);
        return string.split(",");
    }
 
}