NC65 读取配置文件
static{
String config = RuntimeEnv.getInstance().getNCHome()
+File.separator + "ierp" + File.separator + "bin" + File.separator
+"zqconfig.properties";
try{
FileInputStream input = new FileInputStream(config);
Properties properties = new Properties();
properties.load(input);
pk_group = properties.getProperty("pk_group");
userDataSource = properties.getProperty("userDataSource");
userCode = properties.getProperty("userCode");
url = properties.getProperty("url");
}catch(Exception e){
Logger.error("读取配置文件出错:"+e.getMessage());
e.printStackTrace();
}
}