springBoot中如何访问resource目录下的内容呢?
下文笔者讲述使用java代码访问resource目录下内容的方法分享,如下所示
访问resource目录下内容的方法
ClassPathResource classPathResource = new ClassPathResource("test.xls"); File file = new File(classPathResource.getURL().getPath());
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。