添加 TODO。

This commit is contained in:
zhouxy108 2023-02-09 00:54:58 +08:00
parent 7c522cae1d
commit 2de86dcc4a

View File

@ -34,6 +34,12 @@ public class FastDFSUtil {
try {
String filePath = new ClassPathResource("fdfs_client.conf").getFile().getAbsolutePath();
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();
trackerServer = trackerClient.getTrackerServer();
storageServer = trackerClient.getStoreStorage(trackerServer);