Properties p = new Properties();
try {
InputStream in = new BufferedInputStream(new FileInputStream("BankDebitBack.properties"));
p.load(in);
in.close();
String user = p.getProperty("USER","");--获取配置文件的值
} catch (FileNotFoundException e) {
log.error(e.getMessage());
} catch (IOException e) {
log.error(e.getMessage());
} catch (Exception e) {
log.error(e.getMessage());
}