字符集

  1. #linux查看字符集,
  2. locale -a
  3. C
  4. C.UTF-8
  5. POSIX
  6. #windows查看字符集 默认GBK

换行

#windows \r\n,回车换行
#linux \n,换行

大小写

#windows 不区分大小写
#linux 区分大小写

分隔符

#windows下分隔符:\
#linux下分隔符:/

获取文件

在linux环境下,class文件被打成了jar包,使用Resource.getFile()方法,无法获取jar包里面的class文件。

异常信息:
file cannot be resolved to absolute file path because it does not reside in the file system