{"id":36420613,"url":"https://github.com/applesline/mini-dubbo","last_synced_at":"2026-01-11T17:33:15.099Z","repository":{"id":39933471,"uuid":"271996545","full_name":"applesline/mini-dubbo","owner":"applesline","description":"迷你版dubbo实现，零配置、易于使用，支持redis、zookeeper注册中心，支持负载均衡、心跳机制、失败重试机制，轻量级ioc容器guice提供对象容器化支持","archived":false,"fork":false,"pushed_at":"2024-08-05T21:31:05.000Z","size":57,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-30T21:40:44.635Z","etag":null,"topics":["dubbo","guava","guice","netty","redis","zookeeper"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/applesline.png","metadata":{"files":{"readme":"README.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}},"created_at":"2020-06-13T11:34:45.000Z","updated_at":"2024-10-28T06:33:39.000Z","dependencies_parsed_at":"2022-08-25T09:40:27.136Z","dependency_job_id":null,"html_url":"https://github.com/applesline/mini-dubbo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/applesline/mini-dubbo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applesline%2Fmini-dubbo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applesline%2Fmini-dubbo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applesline%2Fmini-dubbo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applesline%2Fmini-dubbo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/applesline","download_url":"https://codeload.github.com/applesline/mini-dubbo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applesline%2Fmini-dubbo/sbom","scorecard":{"id":203816,"data":{"date":"2025-08-11","repo":{"name":"github.com/applesline/mini-dubbo","commit":"9dfaee5b9365cc759fbdb4d5d18c55b7aead519b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/applesline/mini-dubbo/releases/27526314","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/applesline/mini-dubbo/releases/27526314"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"41 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h46c-h94j-95f3","Warn: Project is vulnerable to: GHSA-wf8f-6423-gfxg","Warn: Project is vulnerable to: GHSA-288c-cq4h-88gq","Warn: Project is vulnerable to: GHSA-3x8x-79m2-3w2w","Warn: Project is vulnerable to: GHSA-57j2-w4cx-62h2","Warn: Project is vulnerable to: GHSA-jjjh-jjxp-wpff","Warn: Project is vulnerable to: GHSA-rgv9-q543-rqg4","Warn: Project is vulnerable to: GHSA-4jrv-ppp4-jm57","Warn: Project is vulnerable to: GHSA-5mg8-w23w-74h3","Warn: Project is vulnerable to: GHSA-7g45-4rm6-3mm3","Warn: Project is vulnerable to: GHSA-mvr2-9pj6-7w5j","Warn: Project is vulnerable to: GHSA-5mcr-gq6c-3hq2","Warn: Project is vulnerable to: GHSA-7vpq-g998-qpv7","Warn: Project is vulnerable to: GHSA-9vjp-v76f-g363","Warn: Project is vulnerable to: GHSA-cqqj-4p63-rrmm","Warn: Project is vulnerable to: GHSA-f256-j965-7f32","Warn: Project is vulnerable to: GHSA-grg4-wf29-r9vv","Warn: Project is vulnerable to: GHSA-p2v9-g2qv-p635","Warn: Project is vulnerable to: GHSA-wm47-8v5p-wjpj","Warn: Project is vulnerable to: GHSA-wx5j-54mm-rqqq","Warn: Project is vulnerable to: GHSA-xfv3-rrfm-f2rv","Warn: Project is vulnerable to: GHSA-389x-839f-4rhx","Warn: Project is vulnerable to: GHSA-xq3w-v528-46rv","Warn: Project is vulnerable to: GHSA-6mjq-h674-j845","Warn: Project is vulnerable to: GHSA-2qrg-x229-3v8q","Warn: Project is vulnerable to: GHSA-65fg-84f6-3jq3","Warn: Project is vulnerable to: GHSA-f7vh-qwp3-x37m","Warn: Project is vulnerable to: GHSA-fp5r-v3w9-4333","Warn: Project is vulnerable to: GHSA-w9p3-5cr8-m3jj","Warn: Project is vulnerable to: GHSA-2hw2-62cp-p9p7","Warn: Project is vulnerable to: GHSA-7286-pgfv-vxvh","Warn: Project is vulnerable to: GHSA-7cwj-j333-x7f7","Warn: Project is vulnerable to: GHSA-ccqf-c5hq-77mp","Warn: Project is vulnerable to: GHSA-4hvc-qwr2-f8rv","Warn: Project is vulnerable to: GHSA-3mc7-4q67-w48m","Warn: Project is vulnerable to: GHSA-98wm-3w3q-mw94","Warn: Project is vulnerable to: GHSA-9w3m-gqgf-c4p9","Warn: Project is vulnerable to: GHSA-c4r9-r8fh-9vj2","Warn: Project is vulnerable to: GHSA-hhhw-99gj-p3c3","Warn: Project is vulnerable to: GHSA-mjmj-j48q-9wg2","Warn: Project is vulnerable to: GHSA-w37g-rhq8-7m4j"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T23:17:07.658Z","repository_id":39933471,"created_at":"2025-08-16T23:17:07.658Z","updated_at":"2025-08-16T23:17:07.658Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28315879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: 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":["dubbo","guava","guice","netty","redis","zookeeper"],"created_at":"2026-01-11T17:33:14.523Z","updated_at":"2026-01-11T17:33:15.095Z","avatar_url":"https://github.com/applesline.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mini-dubbo\n\n##### 迷你版dubbo实现，零配置、易于使用，支持redis、zookeeper注册中心，轻量级ioc容器guice提供对象容器化支持\n\n---\n\n\u003e 快速入门\n\n#### 1.添加依赖\n\n```xml\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.github.applesline\u003c/groupId\u003e\n      \u003cartifactId\u003emini-dubbo\u003c/artifactId\u003e\n      \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n#### 2.业务接口定义\n```java\npackage org.applesline.api;\n\npublic interface GreetingService {\n    String sayHello(String name);\n}\n```\n---\n\n#### 3.业务接口实现\n```java\npackage org.applesline;\n\nimport org.applesline.api.GreetingService;\n\npublic class GreetingServiceImpl implements GreetingService {\n    public String sayHello(String name) {\n        return \"hi \" + name;\n    }\n}\n```\n---\n\n#### 4.接口与实现类进行绑定\n```java\npackage org.applesline;\n\nimport com.google.inject.AbstractModule;\nimport com.google.inject.Singleton;\nimport org.applesline.api.GreetingService;\n\npublic class ServerConfig extends AbstractModule {\n    public void configure() {\n        bind(GreetingService.class).to(GreetingServiceImpl.class).in(Singleton.class);\n    }\n}\n```\n---\n\n##### 5.编写服务端程序并注册服务（guice中注册服务，相当于spring的ioc容器）\n```java\npackage org.applesline;\n\nimport org.applesline.mini.dubbo.context.RpcContext;\nimport org.applesline.mini.dubbo.protocol.Protocol;\n\npublic class ServiceProvider {\n\n    public static void main(String[] args) {\n        // 将服务注册到guice中，默认使用本地zookeeper作为注册中心（127.0.0.1:2181），需要确保本地安装并启动了zk\n        RpcContext.setConfiguration(new ServerConfig());\n        Protocol protocol = RpcContext.getBean(Protocol.class);\n        protocol.export();\n    }\n}\n\n```\n---\n\n#### 6.编写客户端服务\n```java\npackage org.applesline;\n\nimport org.applesline.api.GreetingService;\nimport org.applesline.mini.dubbo.context.RpcContext;\nimport org.applesline.mini.dubbo.proxy.ProxyFactory;\n\npublic class ServiceConsumer {\n\n    public static void main(String[] args) {\n        // 默认使用本地zookeeper作为注册中心（127.0.0.1:2181），需要确保本地安装并启动了zk\n        RpcContext.initContext();\n        GreetingService greetingService = ProxyFactory.getProxyObject(GreetingService.class);\n        System.out.println(greetingService.sayHello(\"mini-dubbo\"));\n    }\n}\n```\n### 自此便可以愉快的体验mini-dubbo带来的乐趣了\n\n---\n\u003e 联系作者\n\n\u003capplesline@163.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapplesline%2Fmini-dubbo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapplesline%2Fmini-dubbo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapplesline%2Fmini-dubbo/lists"}