{"id":43521906,"url":"https://github.com/weimin96/oss-spring-boot-starter","last_synced_at":"2026-02-03T14:31:28.227Z","repository":{"id":189531316,"uuid":"680835363","full_name":"weimin96/oss-spring-boot-starter","owner":"weimin96","description":"oss-spring-boot-starter is a toolkit based on Spring Boot and Amazon S3. With this toolkit, you can easily perform operations related to OSS (Object Storage Service) storage. 基于springboot的对象存储工具。","archived":false,"fork":false,"pushed_at":"2025-01-26T05:29:07.000Z","size":272,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T06:17:47.968Z","etag":null,"topics":["aws","minio","obs","oss","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weimin96.png","metadata":{"files":{"readme":"README-zh-CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-20T15:03:59.000Z","updated_at":"2025-01-26T05:27:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"871a8dd8-305e-472f-bd60-365cdb6142e7","html_url":"https://github.com/weimin96/oss-spring-boot-starter","commit_stats":null,"previous_names":["weimin96/oss-spring-starter","weimin96/oss-spring-boot-starter"],"tags_count":54,"template":false,"template_full_name":null,"purl":"pkg:github/weimin96/oss-spring-boot-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weimin96%2Foss-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weimin96%2Foss-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weimin96%2Foss-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weimin96%2Foss-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weimin96","download_url":"https://codeload.github.com/weimin96/oss-spring-boot-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weimin96%2Foss-spring-boot-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29047565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","minio","obs","oss","springboot"],"created_at":"2026-02-03T14:31:23.798Z","updated_at":"2026-02-03T14:31:28.220Z","avatar_url":"https://github.com/weimin96.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OSS Spring Boot3 Starter\n\n[![Java CI](https://github.com/weimin96/oss-spring-boot-starter/actions/workflows/ci.yml/badge.svg)](https://github.com/weimin96/oss-spring-boot-starter/actions/workflows/ci.yml)\n[![GitHub Release](https://img.shields.io/github/v/release/weimin96/oss-spring-boot-starter)](https://github.com/weimin96/oss-spring-boot-starter/releases/)\n[![Maven Central Version](https://img.shields.io/maven-central/v/io.github.weimin96/oss-spring-boot-starter)](https://repo1.maven.org/maven2/io/github/weimin96/oss-spring-boot-starter/)\n[![GitHub repo size](https://img.shields.io/github/repo-size/weimin96/oss-spring-boot-starter)](https://github.com/weimin96/oss-spring-boot-starter/releases/)\n[![License](https://img.shields.io/:license-apache-brightgreen.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)\n[![Last Commit](https://img.shields.io/github/last-commit/weimin96/oss-spring-boot-starter.svg)](https://github.com/weimin96/oss-spring-boot-starter)\n[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/weimin96/oss-spring-boot-starter.svg)](https://github.com/weimin96/oss-spring-boot-starter)\n\nREADME: [English](README.md) | [中文](README-zh-CN.md)\n\nWiki: [Wiki](https://github.com/weimin96/oss-spring-boot-starter/wiki)\n\n前端配套代码 [oss-spring-boot-starter-ui-demo](https://github.com/weimin96/oss-spring-boot-starter-ui-demo)\n\n## 简介\n\n该项目主要是利用主流的OSS对象存储服务（`腾讯云COS`/`阿里云OSS`/`华为云OBS`/`七牛云`/`MinIo`）都兼容Amazon S3（Simple Storage Service）协议的特性，基于Spring Boot的自动化配置特性提供一系列对象存储操作。\n\n## 特性\n\n- 支持：腾讯云、阿里云、华为云、七牛云、京东云、MinIo\n- 提供一系列的基础 web 端点和 swagger 文档，支持自由开启\n- 查询\n- - 连接测试\n- - 存储桶查询\n- - 大文件分片下载、普通下载\n- - 文件列表懒加载查询、树形查询、模糊查询、层级查询\n- - 文件夹列表查询\n- - 文件预览、文本获取、文件详情\n- 操作\n- - 大文件分片上传、普通上传、\n- - 创建文件夹、上传文件夹\n- - 拷贝文件、移动文件\n- - 校验是否存在\n- 删除\n- - 文件删除、文件夹删除\n\n## 版本基础\n\n- JDK 21\n- Spring Boot 3.x\n\n[Spring Boot 2.x版本](https://github.com/weimin96/oss-spring-boot-starter/tree/spring2)\n\n## 如何使用\n\n### 引入依赖\n\n- 使用 **Maven** 添加依赖项：\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.weimin96\u003c/groupId\u003e\n    \u003cartifactId\u003eoss-spring-boot3-starter\u003c/artifactId\u003e\n    \u003cversion\u003e${lastVersion}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n- 或者使用 **Gradle** 添加依赖项：\n```gradle\ndependencies {\n  implementation 'io.github.weimin96:oss-spring-boot3-starter:${lastVersion}'\n}\n```\n\n- 在 `application.yml` 添加配置\n```yaml\noss:\n  endpoint: https://xxx.com\n  access-key: YOUR_ACCESS_KEY\n  secret-key: YOUR_SECRET_KEY\n  bucket-name: your-bucket-name\n  enable: true\n```\n\n- 代码使用\n```java\n@Autowired\nprivate OssTemplate template;\n\n// 上传文件\nossTemplate.put().putObject(\"bucket\", \"1.jpg\", new File(\"/data/1.jpg\"));\n```\n\n## 参数配置\n\n所有的的配置说明\n\n| 配置                     | 类型      | 默认值   | 描述                                |\n|------------------------|---------|-------|-----------------------------------|\n| oss.enable             | boolean | false | Enable OSS or not                 |\n| oss.endpoint           | String  |       | Endpoint of the OSS service       |\n| oss.bucket-name        | String  |       | Bucket name                       |\n| oss.access-key         | String  |       | Access key ID                     |\n| oss.secret-key         | String  |       | Access secret key                 |\n| oss.type               | String  |       | OSS type (options: obs/minio/cos) |\n| oss.max-connections    | int     | 50    | 最大连接数 默认50                        |\n| oss.connection-timeout | int     | 10000 | 连接超时 默认10s                        |\n| oss.http.prefix        | String  |       | Prefix of the endpoint URL        |\n| oss.http.enable        | boolean | false | Enable web endpoints or not       |\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweimin96%2Foss-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweimin96%2Foss-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweimin96%2Foss-spring-boot-starter/lists"}