|
@@ -25,7 +25,7 @@ public class FastDFSClient {
|
|
|
|
|
|
static {
|
|
static {
|
|
try {
|
|
try {
|
|
- String filePath = new ClassPathResource("fdfs_client.conf").getFile().getAbsolutePath();
|
|
|
|
|
|
+ String filePath = new ClassPathResource("fdfs_client.conf").getFile().getPath();
|
|
ClientGlobal.init(filePath);
|
|
ClientGlobal.init(filePath);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
logger.error("FastDFS Client Init Fail!", e);
|
|
logger.error("FastDFS Client Init Fail!", e);
|
|
@@ -114,7 +114,6 @@ public class FastDFSClient {
|
|
|
|
|
|
private static StorageClient getTrackerClient() throws IOException {
|
|
private static StorageClient getTrackerClient() throws IOException {
|
|
TrackerServer trackerServer = getTrackerServer();
|
|
TrackerServer trackerServer = getTrackerServer();
|
|
- logger.info("http://" + getTrackerServer().getInetSocketAddress().getHostString() + ":" + ClientGlobal.getG_tracker_http_port() + "/");
|
|
|
|
StorageClient storageClient = new StorageClient(trackerServer, null);
|
|
StorageClient storageClient = new StorageClient(trackerServer, null);
|
|
return storageClient;
|
|
return storageClient;
|
|
}
|
|
}
|