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(",");
|
}
|
|
}
|