我正在编写一个获取存储在src/main/resources中的excel工作表文件的get API。 InputStream的内容为excel文件(xlsm格式)。但是响应是数据被破坏了。new File(getClass().getClassLoader().getResource(fn).getFile());
InputStreamSource iss = new FileSystemResourcethrow new ApiException(ApiErrorCode.DEFA
我正在创建有两个子模块的maven多模块。一个是具有数据库存储库的简单DAO层,另一个是springboot app,它是命令行app。我已经在dao模块中定义了这个文件,并使用SpringBootApplication上的@ImportResource在springboot模块中使用它,它工作得很好。现在,我需要在运行springboot jar (java -jar app.jar /path/ to &