//获取 inputStream 方式一
Resource resource = new ClassPathResource("excel/template/test.xlsx");
InputStream inputStream = resource.getInputStream();


//获取 inputStream 方式二
InputStream inputStream = TestController.class.getResourceAsStream("/excel/template/test.xlsx");

相关文章:

  • 2021-11-18
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2022-01-17
  • 2021-11-13
猜你喜欢
  • 2021-11-27
  • 2023-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案