📄 config.java
字号:
import java.util.*;
public class Config {
ResourceBundle rb;
public Config() {
String language = new String("cn");
String country = new String("ZH");
Locale currentLocale = new Locale(language, country);
//I use websphereConfigBundle_cn_ZH.properties as config file name
rb = ResourceBundle.getBundle("websphereConfigBundle", currentLocale);
}
public String getConfigSetting(String key){
return rb.getString(key);
}
public static void main(String[] args){
Config c=new Config();
String s=c.getConfigSetting("websphere_data_filename");
System.out.println(s);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -