소스 검색

商品导入

xujunwei 1 년 전
부모
커밋
796bb1eb58
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      framework-boot/src/main/java/com/mrxu/framework/boot/web/BaseController.java

+ 1 - 0
framework-boot/src/main/java/com/mrxu/framework/boot/web/BaseController.java

@@ -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());