|
@@ -1,9 +1,7 @@
|
|
|
package com.steerinfo.dil.util;
|
|
|
|
|
|
-import com.steerinfo.dil.service.ResourceRepository;
|
|
|
import org.apache.commons.net.ftp.FTPClient;
|
|
|
import org.apache.commons.net.ftp.FTPReply;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.io.IOException;
|
|
@@ -28,9 +26,6 @@ public class FtpUtil {
|
|
|
private static final String FTP_PASSWORD = "Ils2021";
|
|
|
//路径都是/home/加上用户名
|
|
|
public final String FTP_BASEPATH = "/usr/local/src/file";
|
|
|
- //
|
|
|
- @Autowired
|
|
|
- private ResourceRepository resourceRepository;
|
|
|
|
|
|
//参数传过来了文件和文件的输入流
|
|
|
public boolean uploadFile(String originFileName, InputStream input) {
|