利用System.getProperty()函数获取当前路径: 
String str = System.getProperty("user.dir");//user.dir指定了当前的路径 

参考博客:https://www.cnblogs.com/franson-2016/p/5728280.html

相关文章:

  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-07
  • 2021-10-20
  • 2021-05-23
  • 2021-11-30
  • 2021-07-09
相关资源
相似解决方案