@Configuration
@PropertySource("classpath:fasdDFS.config.properties") //配置文件所在的位置
public class FastDFSConfiger {
@Value("${fastdfs.connect_timeout}")
private int connect_timeout;
@Value("${fastdfs.network_timeout}")
private int network_timeout;
@Value("${ fastdfs.charset }") //不应该有空格,不然无法解析
private String charset;
@Value("${ fastdfs.http.tracker_http_port }")
private int tracker_http_port;
@Value("${ fastdfs.http.anti_steal_token }")
private boolean anti_steal_token;
@Value("${ fastdfs.tracker_server }")
private String tracker_server;
@Value("${ fastdfs.storage_server }")
}
转载于:https://my.oschina.net/u/2474820/blog/737096