于紫祥_1901
2020-09-10 e399f702d76b2b170956a5996b5364f148b54b8d
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(",");
    }
 
}