From e3f451b375ba385f23b8943dcc583989315b4184 Mon Sep 17 00:00:00 2001 From: dinggang <2498628697@qq.com> Date: Thu, 14 Jul 2022 11:51:31 +0800 Subject: [PATCH] ... --- .../service/impl/DevelopmentGuideServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renren-admin/src/main/java/io/renren/modules/developmentGuide/service/impl/DevelopmentGuideServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/developmentGuide/service/impl/DevelopmentGuideServiceImpl.java index c8b314b4..5a37abf2 100644 --- a/renren-admin/src/main/java/io/renren/modules/developmentGuide/service/impl/DevelopmentGuideServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/developmentGuide/service/impl/DevelopmentGuideServiceImpl.java @@ -86,7 +86,7 @@ public class DevelopmentGuideServiceImpl implements DevelopmentGuideService { uploadFile.transferTo(new File(path, fileName)); logger.info("----------------------------------文件上传成功--------------------------------------"); String filePath = request.getScheme() + "://" + root_url - + ":" + request.getServerPort() + context_path + "/devModelFile/" + type + fileName; + + ":" + request.getServerPort() + context_path + "/devModelFile/" + type + File.separator + fileName; return filePath; } catch (IOException e) { logger.info("----------------------------------文件上传失败--------------------------------------");