提交 b8106d46 authored 作者: zhangshuang's avatar zhangshuang

ftp文件服务器

上级 a3f41036
...@@ -13,10 +13,14 @@ ...@@ -13,10 +13,14 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId> <artifactId>fastjson</artifactId>
......
...@@ -59,7 +59,7 @@ public class FileUploadServiceImpl implements FileUploadService { ...@@ -59,7 +59,7 @@ public class FileUploadServiceImpl implements FileUploadService {
bos.write(b,0,len); bos.write(b,0,len);
} }
fileReturn.setName(sourceName); fileReturn.setName(sourceName);
//fileReturn.setPath(savePath); fileReturn.setPath(savePath);
fileReturns.add(fileReturn); fileReturns.add(fileReturn);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.13.RELEASE</version> <version>2.2.5.RELEASE</version>
<relativePath/> <!-- lookup parent from repository --> <relativePath/> <!-- lookup parent from repository -->
</parent> </parent>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论