private static ResourceBundle rb;
private static BufferedInputStream inputStream;
static {
// rb = ResourceBundle.getBundle("xcc.resourceBundle");
String proFilePath = System.getProperty("user.dir") + "\\config\\resourceBundle.properties";
try {
inputStream = new BufferedInputStream(new FileInputStream(proFilePath));
rb = new PropertyResourceBundle(inputStream);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
转载于:https://my.oschina.net/kevinky/blog/713636