// 配置文件读取用户名,密码等
Properties properties = new Properties();
InputStream inStream = this
.getClass()
.getClassLoader()
.getResourceAsStream(
"nc/ui/so/m30/billui/model/gps.properties");
try {
properties.load(inStream);
} catch (IOException e) {
e.printStackTrace();
}
String username = properties.getProperty("username");
String pwd = properties.getProperty("password");
Properties properties = new Properties();
InputStream inStream = this
.getClass()
.getClassLoader()
.getResourceAsStream(
"nc/ui/so/m30/billui/model/gps.properties");
try {
properties.load(inStream);
} catch (IOException e) {
e.printStackTrace();
}
String username = properties.getProperty("username");
String pwd = properties.getProperty("password");