String path = System.getProperty("user.dir");
String path1 = Thread.currentThread().getContextClassLoader().getResource("").getPath(); //获取当前资源的虚拟路径
String path = System.getProperty("user.dir");
String path1 = Thread.currentThread().getContextClassLoader().getResource("").getPath(); //获取当前资源的虚拟路径