rb= ResourceBundle.getBundle(
"com/util/Application",Locale.getDefault());
根据默认的语言环境家在路径com/util下的 Application.properties 属性文件,上面写时不用带后缀的,该路径默认相对为src路径下
获取属性文件中的值
String value = rg.getString("key");
rb= ResourceBundle.getBundle(
"com/util/Application",Locale.getDefault());
根据默认的语言环境家在路径com/util下的 Application.properties 属性文件,上面写时不用带后缀的,该路径默认相对为src路径下
获取属性文件中的值
String value = rg.getString("key");