liaojie970
this.getClass().getClassLoader().getResource("").getPath();  //获取项目的ClassPath的绝对路径
this.getClass().getClassLoader().getResource("").toURI().getPath();  //解决获取项目的ClassPath的绝对路径中文乱码的问题

 

分类:

技术点:

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2021-06-02
  • 2021-11-30
  • 2021-11-29
  • 2022-12-23
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-12-19
相关资源
相似解决方案