SpringBoot 项目打成jar包后 Resource下的静态资源访问
ClassPathResource resource = new ClassPathResource("export/aaa.txt");
InputStream inputStream = resource.getInputStream();
使用ClassPathResource 获取resource下的文件
使用 resource.getInputStream();即可获取文件的输入流
实现springboot打成jar包后的 下载操作
如:使用jar的方式发布代码 时下载文件