广州市综治平台后端
xusd
2025-06-07 36306491396230522fa20585c2621a7fc899849a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
package cn.huge.module.file.config;
 
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
 
/**
 * @title: JSON工具类
 * @description: JSON工具类
 * @company: hugeinfo
 * @author: liyj
 * @time: 2021-11-05 16:51:48
 * @version: 1.0.0
 */
@Component
public class FtpFileConfig {
 
    /**
     * 服务器ip地址
     */
    public static String hostname;
 
    /**
     * 端口
     */
    public static int port;
 
    /**
     * 用户名
     */
    public static String username;
 
    /**
     * 密码
     */
    public static String password;
 
    /**
     * 附件存储根目录
     */
    public static String rootdir;
 
    @Value("${ftp.hostname}")
    public void setHostname(String hostname) {
        this.hostname = hostname;
    }
 
    @Value("${ftp.port}")
    public void setPort(int port) {
        this.port = port;
    }
 
    @Value("${ftp.username}")
    public void setUsername(String username) {
        this.username = username;
    }
 
    @Value("${ftp.password}")
    public void setPassword(String password) {
        this.password = password;
    }
 
    @Value("${ftp.rootdir}")
    public void setRootdir(String rootdir) {
        this.rootdir = rootdir;
    }
 
    public static String getHostname() {
        return hostname;
    }
 
    public static int getPort() {
        return port;
    }
 
    public static String getUsername() {
        return username;
    }
 
    public static String getPassword() {
        return password;
    }
 
    public static String getRootdir() {
        return rootdir;
    }
}
/**
 * -------------------_ooOoo_-------------------
 * ------------------o8888888o------------------
 * ------------------88" . "88------------------
 * ------------------(| -_- |)------------------
 * ------------------O\  =  /O------------------
 * ---------------____/`---'\____---------------
 * -------------.'  \\|     |//  `.-------------
 * ------------/  \\|||  :  |||//  \------------
 * -----------/  _||||| -:- |||||-  \-----------
 * -----------|   | \\\  -  /// |   |-----------
 * -----------| \_|  ''\---/''  |   |-----------
 * -----------\  .-\__  `-`  ___/-. /-----------
 * ---------___`. .'  /--.--\  `. . __----------
 * ------."" '<  `.___\_<|>_/___.'  >'"".-------
 * -----| | :  `- \`.;`\ _ /`;.`/ - ` : | |-----
 * -----\  \ `-.   \_ __\ /__ _/   .-` /  /-----
 * ======`-.____`-.___\_____/___.-`____.-'======
 * -------------------`=---='
 * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 * ---------佛祖保佑---hugeinfo---永无BUG----------
 */