工业级运维app手机api
xufenglei
2017-10-27 3e6d73b90033d94fb8cb59e3a0958853177410e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.moral.monitor.util;
 
import java.util.ResourceBundle;
 
/**
 * Created by a on 2017/7/4.
 */
public class ResourceUtil {
    private static final ResourceBundle bundle = java.util.ResourceBundle.getBundle("sysConfig");
    /**
     * 获取随机码的长度
     *
     * @return 随机码的长度
     */
    public static String getRandCodeLength() {
        return bundle.getString("randCodeLength");
    }
 
    /**
     * 获取随机码的类型
     *
     * @return 随机码的类型
     */
    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(",");
    }
 
}