package com.expr.exceldemo;

import org.springframework.core.io.ClassPathResource;

public class Test {
    public static void main(String[] args) {
        ClassPathResource classPathResource = new ClassPathResource("2019年4月园企业经营情况表(当月值).xlsx");
        boolean exists = classPathResource.exists();
        System.out.println(exists);
    }
}

代码中的那个excel就在项目的resource(资源文件夹下放着)。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2021-07-25
  • 2022-01-07
  • 2022-12-23
  • 2021-11-27
猜你喜欢
  • 2022-01-07
  • 2022-01-07
  • 2022-01-30
  • 2022-12-23
  • 2021-12-10
  • 2022-02-07
  • 2019-12-12
相关资源
相似解决方案