UserBean.class.getClassLoader().getResource(filePath).getPath()

或者

Thread.currentThread().getContextClassLoader().getResource(filepath).getPath();

 

相关文章:

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