# seaweedfs-java-client **Repository Path**: lx75171916/seaweedfs-java-client ## Basic Information - **Project Name**: seaweedfs-java-client - **Description**: seaweedfs-java-client,兼容高低版本的seaweedfs - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2023-02-17 - **Last Updated**: 2023-02-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # seaweedfs-java-client #### 介绍 seaweedfs-java-client的依赖都是十年的了,没有更新。有些功能并不支持高版本的seaweedfs。 改造以后的seaweedfs-java-client,兼容高低版本的seaweedfs 也可以直接下载:src\test\java\net\anumbrella\seaweedfs\seaweedfs-java-client-0.0.3.RELEASE.jar 使用。 #### 创建 FileTemplate ```java FileSource fileSource = new FileSource(); ConnectionProperties connectionProperties = new ConnectionProperties.Builder() .host("localhost") .port(9333) .maxConnection(100).build(); fileSource.setProperties(connectionProperties); fileSource.startup(); FileTemplate template = new FileTemplate(fileSource.getConnection()); template.saveFileByStream("filename.doc", someFile); ```