mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
update 上传FTP
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user