package club.yueshe.pangu.config;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
/**
* @Author Theodore
* @Date 2019/10/23 16:14
*/
@Data
@Configuration
public class FastDFSConfig {
public static String fastDFSIpAndPort;
/**
* 必须使用 @Autowired ,否则无法注入数据
* @param ipAndPort
*/
@Autowired
public void setFastDFSIpAndPort(@Value("${fastdfs.ipAndPort}") String ipAndPort) {
fastDFSIpAndPort = ipAndPort;
}
}