|
|
@@ -270,6 +270,7 @@ public class BaseController {
|
|
|
@SneakyThrows
|
|
|
protected void downloadFile(HttpServletResponse response,String fileName) {
|
|
|
String path = this.getClass().getClassLoader().getResource("").getPath();
|
|
|
+ log.info("resource 路径:{}",path);
|
|
|
File file = new File(path + "file/"+fileName);
|
|
|
// 文件转成字节数组
|
|
|
byte[] fileByte = Files.readAllBytes(file.toPath());
|