码迷,mamicode.com
首页 > Windows程序 > 详细

mac与windows读取文件路径不同

时间:2017-09-25 13:16:33      阅读:293      评论:0      收藏:0      [点我收藏+]

标签:mil   12px   conf   get   config   ace   new   class   ati   

mac:

  generatorConfig_vm = MybatisGeneratorUtil.class.getResource(generatorConfig_vm).getPath()

windows:

  generatorConfig_vm = MybatisGeneratorUtil.class.getResource(generatorConfig_vm).getPath().replaceFirst("/", "");

mac与windows读取文件路径不同

标签:mil   12px   conf   get   config   ace   new   class   ati   

原文地址:http://www.cnblogs.com/faker2014/p/7591041.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!