update 上传FTP

This commit is contained in:
Guoqs
2024-05-31 15:10:10 +08:00
parent d41ae9bc46
commit 4471c29928
7 changed files with 298 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
package com.jsowell.common.config;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
@Data
public class FtpConfig {
@Value("${remoteUpdate.server}")
String ip;
@Value("${remoteUpdate.port}")
int port;
@Value("${remoteUpdate.username}")
String username;
@Value("${remoteUpdate.password}")
String password;
@Value("${remoteUpdate.uploadPath}")
String uploadPath;
@Value("${remoteUpdate.uploadPath}")
String downPath;
// 在Controller中用于第二层与第三层路径的拼接
public static String getPropertyStaffDir() {
return "/propertyStaffImage";
}
}