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("----------------------------------文件上传失败--------------------------------------");