添加 TODO。
This commit is contained in:
parent
7c522cae1d
commit
2de86dcc4a
@ -34,6 +34,12 @@ public class FastDFSUtil {
|
|||||||
try {
|
try {
|
||||||
String filePath = new ClassPathResource("fdfs_client.conf").getFile().getAbsolutePath();
|
String filePath = new ClassPathResource("fdfs_client.conf").getFile().getAbsolutePath();
|
||||||
ClientGlobal.init(filePath);
|
ClientGlobal.init(filePath);
|
||||||
|
/*
|
||||||
|
* TODO【重构】 将配置信息集成在 SpringBoot 配置文件中,使用加载 Properties 对象的方式进行配置,去除 fdfs_client.conf
|
||||||
|
* Properties props = new Properties();
|
||||||
|
* props.put(ClientGlobal.PROP_KEY_TRACKER_SERVERS, "10.0.11.101:22122,10.0.11.102:22122");
|
||||||
|
* ClientGlobal.initByProperties(props);
|
||||||
|
*/
|
||||||
trackerClient = new TrackerClient();
|
trackerClient = new TrackerClient();
|
||||||
trackerServer = trackerClient.getTrackerServer();
|
trackerServer = trackerClient.getTrackerServer();
|
||||||
storageServer = trackerClient.getStoreStorage(trackerServer);
|
storageServer = trackerClient.getStoreStorage(trackerServer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user