public static void main(String[] args){
String printerName="";
String path = "C:\\BarCodeConfig\\Printer.properties";
Properties prop = new Properties();
FileInputStream fis;
try {
fis = new FileInputStream(path);
prop.load(fis);
fis.close();
printerName= prop.getProperty("printerName");
} catch (FileNotFoundException e) {
System.out.println(e);
} catch (IOException ex) {
System.out.println(ex);
}
System.out.println("NAME:"+printerName); }

最新文章

  1. Struts+Spring+Hibernate项目的启动线程
  2. mybatis hibernate比较
  3. windows配置nginx实现负载均衡集群
  4. HD 1533 Going Home(最小费用最大流模板)
  5. C# - (0x80040154): Retrieving the COM class factory for component with CLSID {877AA945-1CB2-411C-ACD7-C70B1F9E2E32} failed
  6. 易维清使用技巧:CHM编辑利器
  7. 【BZOJ 2143】 飞飞侠
  8. java 保留小数点后N位数(若干位),几种实现的方式总结
  9. 利用浏览器查找font-family的css编码
  10. Copy_on_write的简单实现
  11. 火狐浏览器打开html文件,中文乱码
  12. ceph-deploy出错UnableToResolveError Unable to resolve host
  13. c++ 中lambda
  14. WebRTC技术调研
  15. Linux云计算运维-Redis
  16. springboot 2.0部署到Tomat8.5上
  17. 访问WebServcie遇到配额不足的时候,请增加配额
  18. 实验吧CTF天网管理系统
  19. 如何修改Windows上某块网卡的MTU的值
  20. Java数组排序和搜索

热门文章

  1. JS应用之正则表达式
  2. hdu1394(Minimum Inversion Number)线段树
  3. CentOS 7 设置开机自启动
  4. 事务场景中,抛出异常被catch后,如果需要回滚,一定要手动回滚事务
  5. ES6(函数新增特性)
  6. 2. TypeScript笔记
  7. robot framework常见错误:RIDE运行一次后不显示log
  8. 一个python爬虫协程的写法(gevent模块)
  9. Python的3种格式化字符串方法
  10. gitHub网站上常见英语翻译