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---------- */