{"id":18559130,"url":"https://github.com/linux-china/spring-boot-starter-oss","last_synced_at":"2025-10-24T04:27:10.745Z","repository":{"id":27319881,"uuid":"30794237","full_name":"linux-china/spring-boot-starter-oss","owner":"linux-china","description":"Spring Boot Start with Aliyun OSS","archived":false,"fork":false,"pushed_at":"2016-05-04T07:13:15.000Z","size":42,"stargazers_count":20,"open_issues_count":0,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-13T00:09:32.091Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linux-china.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-14T11:01:43.000Z","updated_at":"2024-11-27T06:13:43.000Z","dependencies_parsed_at":"2022-09-02T04:41:48.821Z","dependency_job_id":null,"html_url":"https://github.com/linux-china/spring-boot-starter-oss","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/linux-china/spring-boot-starter-oss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fspring-boot-starter-oss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fspring-boot-starter-oss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fspring-boot-starter-oss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fspring-boot-starter-oss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linux-china","download_url":"https://codeload.github.com/linux-china/spring-boot-starter-oss/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fspring-boot-starter-oss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279052787,"owners_count":26094006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-06T21:42:08.831Z","updated_at":"2025-10-15T05:16:35.510Z","avatar_url":"https://github.com/linux-china.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"spring-boot-start-oss\n===================================\nSpring boot with aliyun oss support\n\n### usage\nin pom.xml add following dependency:\n\n      \u003cdependency\u003e\n           \u003cgroupId\u003eorg.mvnsearch.boot\u003c/groupId\u003e\n           \u003cartifactId\u003espring-boot-starter-oss\u003c/artifactId\u003e\n           \u003cversion\u003e1.0.0-SNAPSHOT\u003c/version\u003e\n      \u003c/dependency\u003e\n      \nin application.properties file, please add following keys:\n\n     spring.oss.key=xxxx\n     spring.oss.secret=yyyy\n     spring.oss.bucket=xxx-dev\n     \nin your code you can use OssClient directly:\n\n     @Autowired\n     OSSClient ossClient;\n\nyou can use FileStorageService API to operate file:\n\n     @Autowired\n     FileStorageService fileStorageService;\n\n### Spring XML Configuration\nIf you want to setup bean in Spring xml file, please use following code:\n\n     \u003cbean id=\"ossClient\" class=\"com.aliyun.oss.OSSClient\"\u003e\n          \u003cconstructor-arg value=\"access_key\"/\u003e\n          \u003cconstructor-arg value=\"access_secret\"/\u003e\n     \u003c/bean\u003e\n          \n     \u003cbean id=\"fileStorageService\" class=\"org.mvnsearch.boot.oss.impl.FileStorageServiceOssImpl\"\u003e\n          \u003cproperty name=\"accessKey\" value=\"access_key\"/\u003e\n          \u003cproperty name=\"accessSecret\" value=\"access_key\"/\u003e\n          \u003cproperty name=\"bucketName\" value=\"bucket_name\"/\u003e\n     \u003c/bean\u003e\n     \n### spring-boot-start-oss service List\n\n* org.mvnsearch.boot.oss.FileStorageService: API to operate the file\n* com.aliyun.oss.OSSClient: aliyun OSSClient\n\nPlease use FileStorageService as usual, not OSSClient.\n     \n### Aliyun OSS endpoint\n\nPlease visit http://localhost:8080/oss to view detail information.\n\n\n### FaQ\n\n* Please upload a \"ok.txt\" under your buket for health indicator.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux-china%2Fspring-boot-starter-oss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinux-china%2Fspring-boot-starter-oss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux-china%2Fspring-boot-starter-oss/lists"}