File.separator 作为路径中的分隔符和可以兼容windows和linux,建议尽量使用。
System.getProperty("user.dir");可以获得当前工作目录,windows下获得的是tomcat下的bin,linux待验证。